[FFmpeg-cvslog] h264: prevent rbsp_buffer values from becoming duplicated

Michael Niedermayer git at videolan.org
Sun Aug 25 03:41:20 CEST 2013


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Sun Aug 25 03:01:19 2013 +0200| [ecbf838c7d81ebd3b89fe75d83ff29150dbda27a] | committer: Michael Niedermayer

h264: prevent rbsp_buffer values from becoming duplicated

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=ecbf838c7d81ebd3b89fe75d83ff29150dbda27a
---

 libavcodec/h264.c |    4 ++++
 1 file changed, 4 insertions(+)

diff --git a/libavcodec/h264.c b/libavcodec/h264.c
index fbcf280..e178073 100644
--- a/libavcodec/h264.c
+++ b/libavcodec/h264.c
@@ -1681,6 +1681,10 @@ static int decode_init_thread_copy(AVCodecContext *avctx)
     memset(h->sps_buffers, 0, sizeof(h->sps_buffers));
     memset(h->pps_buffers, 0, sizeof(h->pps_buffers));
 
+    h->rbsp_buffer[0] = NULL;
+    h->rbsp_buffer[1] = NULL;
+    h->rbsp_buffer_size[0] = 0;
+    h->rbsp_buffer_size[1] = 0;
     h->context_initialized = 0;
 
     return 0;



More information about the ffmpeg-cvslog mailing list