[FFmpeg-devel] [PATCH] fix h264 decoder memory leak
Fri Nov 13 15:47:24 CET 2009
Michael Niedermayer wrote:
> On Thu, Nov 12, 2009 at 09:52:07AM -0500, Mike Scheutzow wrote:
>> The attached patch fixes a memory leak in libavcodec/h264.c. Two buffers
>> were still allocated after the h264 decoder is closed.
> there is code a few lines later that is supposed to free them
> also rbsp_buffer_size should be reset
This memory leak occurs when free_tables() is called from
av_parser_close(). In that situation, h->thread_context is NULL.
h264-mem-leak-v2.patch is attached, which also zeros rbsp_buffer_size
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
More information about the ffmpeg-devel