mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-10-19 06:25:38 +08:00
Just noticed there is a memory leak in h264.c with the usage of rbsp_buffer.
Here is a patch which frees the rbsp_buffer in decode_end(). patch by (Gábor Kovács | picard / demoscene \ hu) Originally committed as revision 4607 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:

committed by
Michael Niedermayer

parent
528bbdde7f
commit
dc9f52602f
@ -7807,6 +7807,7 @@ static int decode_end(AVCodecContext *avctx)
|
|||||||
H264Context *h = avctx->priv_data;
|
H264Context *h = avctx->priv_data;
|
||||||
MpegEncContext *s = &h->s;
|
MpegEncContext *s = &h->s;
|
||||||
|
|
||||||
|
av_freep(&h->rbsp_buffer);
|
||||||
free_tables(h); //FIXME cleanup init stuff perhaps
|
free_tables(h); //FIXME cleanup init stuff perhaps
|
||||||
MPV_common_end(s);
|
MPV_common_end(s);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user