diff h264.c @ 10528:6fe84da648e2 libavcodec

Reset rbsp buffer size when freeing its data buffer. Patch by Mike Scheutzow $(name) AT alcatel 'minus' lucent com
author benoit
date Fri, 13 Nov 2009 18:33:28 +0000
parents 368f82f6e2e3
children 95f3daa991a2
line wrap: on
line diff
--- a/h264.c	Thu Nov 12 20:21:38 2009 +0000
+++ b/h264.c	Fri Nov 13 18:33:28 2009 +0000
@@ -1999,6 +1999,8 @@
         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]);
     }
 }