#3014: sws_scale() renders a frame buffer invalid for memory freeing in a
specific
situation
------------------------------------+-----------------------------------
Reporter: cyril | Owner:
Type: defect | Status: new
Priority: normal | Component: swscale
Version: git-master | Resolution:
Keywords: | Blocked By:
Blocking: | Reproduced by developer: 0
Analyzed by developer: 0 |
------------------------------------+-----------------------------------
Comment (by gjdfgh):
{{{
pDest = avcodec_alloc_frame();
avpicture_alloc((AVPicture *)(pDest), PIX_FMT_BGRA, 1, 60);
}}}
This is as broken as it gets. I think the rule is: never use AVPicture.
You can allocate a frame with av_frame_get_buffer(). You have to set the
image parameters separately before calling this function.
--
Ticket URL: <https://ffmpeg.org/trac/ffmpeg/ticket/3014#comment:4>
FFmpeg <http://ffmpeg.org>
FFmpeg issue tracker
_______________________________________________
FFmpeg-trac mailing list
[email protected]
http://avcodec.org/mailman/listinfo/ffmpeg-trac