Browse Source

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
tags/v0.6
Mike Scheutzow Benoit Fouet 15 years ago
parent
commit
eda4ea4e2e
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      libavcodec/h264.c

+ 2
- 0
libavcodec/h264.c View File

@@ -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]);
}
}


Loading…
Cancel
Save