changeset 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 8cb3965df30f
children f8fc0a56745e
files h264.c
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
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]);
     }
 }