summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Scheutzow <scheutzow@alcatel-lucent.com>2009-11-13 18:33:28 +0000
committerBenoit Fouet <benoit.fouet@free.fr>2009-11-13 18:33:28 +0000
commiteda4ea4e2ecf010acabbf5c0a5fc11273274f1b9 (patch)
tree620bd2cb3cc78333ca338223cd063d606046aab6
parent103dfbe2c41365fb3fb638c8187088701b93b0f4 (diff)
Reset rbsp buffer size when freeing its data buffer.
Patch by Mike Scheutzow $(name) AT alcatel 'minus' lucent com Originally committed as revision 20531 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r--libavcodec/h264.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libavcodec/h264.c b/libavcodec/h264.c
index 5e03e479df..daf6c3ea77 100644
--- a/libavcodec/h264.c
+++ b/libavcodec/h264.c
@@ -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]);
}
}