[Ffmpeg-cvslog] CVS: ffmpeg/libavcodec h264.c,1.155,1.156

Michael Niedermayer CVS michael
Wed Sep 21 10:14:20 CEST 2005


Update of /cvsroot/ffmpeg/ffmpeg/libavcodec
In directory mail:/var2/tmp/cvs-serv15947

Modified Files:
	h264.c 
Log Message:
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)


Index: h264.c
===================================================================
RCS file: /cvsroot/ffmpeg/ffmpeg/libavcodec/h264.c,v
retrieving revision 1.155
retrieving revision 1.156
diff -u -d -r1.155 -r1.156
--- h264.c	17 Sep 2005 08:15:07 -0000	1.155
+++ h264.c	21 Sep 2005 08:14:17 -0000	1.156
@@ -7807,6 +7807,7 @@
     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);
 





More information about the ffmpeg-cvslog mailing list