Commit b5b80d37 authored by michael's avatar michael

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)


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@4607 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 7f53a1e7
......@@ -7807,6 +7807,7 @@ static int decode_end(AVCodecContext *avctx)
H264Context *h = avctx->priv_data;
MpegEncContext *s = &h->s;
av_freep(&h->rbsp_buffer);
free_tables(h); //FIXME cleanup init stuff perhaps
MPV_common_end(s);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment