[FFmpeg-cvslog] r20531 - trunk/libavcodec/h264.c

benoit subversion
Fri Nov 13 19:33:28 CET 2009


Author: benoit
Date: Fri Nov 13 19:33:28 2009
New Revision: 20531

Log:
Reset rbsp buffer size when freeing its data buffer.
Patch by Mike Scheutzow $(name) AT alcatel 'minus' lucent com

Modified:
   trunk/libavcodec/h264.c

Modified: trunk/libavcodec/h264.c
==============================================================================
--- trunk/libavcodec/h264.c	Fri Nov 13 11:19:42 2009	(r20530)
+++ trunk/libavcodec/h264.c	Fri Nov 13 19:33:28 2009	(r20531)
@@ -1999,6 +1999,8 @@ static void free_tables(H264Context *h){
         av_freep(&hx->s.obmc_scratchpad);
         av_freep(&hx->rbsp_buffer[1]);
         av_freep(&hx->rbsp_buffer[0]);
+        hx->rbsp_buffer_size[0] = 0;
+        hx->rbsp_buffer_size[1] = 0;
         if (i) av_freep(&h->thread_context[i]);
     }
 }



More information about the ffmpeg-cvslog mailing list