Commit 01df03fc authored by benoit's avatar benoit

Reset rbsp buffer size when freeing its data buffer.

Patch by Mike Scheutzow $(name) AT alcatel 'minus' lucent com


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@20531 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 7932d623
...@@ -1999,6 +1999,8 @@ static void free_tables(H264Context *h){ ...@@ -1999,6 +1999,8 @@ static void free_tables(H264Context *h){
av_freep(&hx->s.obmc_scratchpad); av_freep(&hx->s.obmc_scratchpad);
av_freep(&hx->rbsp_buffer[1]); av_freep(&hx->rbsp_buffer[1]);
av_freep(&hx->rbsp_buffer[0]); 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]); if (i) av_freep(&h->thread_context[i]);
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment