aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/h264.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2013-08-25 03:01:19 +0200
committerMichael Niedermayer <michaelni@gmx.at>2013-08-25 03:01:19 +0200
commitecbf838c7d81ebd3b89fe75d83ff29150dbda27a (patch)
treed0e4de88a1357d8bdad109230204459d429384af /libavcodec/h264.c
parent88909beca39ee651f9c2a049f5ea6d7b5a788e82 (diff)
downloadffmpeg-ecbf838c7d81ebd3b89fe75d83ff29150dbda27a.tar.gz
h264: prevent rbsp_buffer values from becoming duplicated
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/h264.c')
-rw-r--r--libavcodec/h264.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/libavcodec/h264.c b/libavcodec/h264.c
index fbcf280dd0..e17807339d 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;