h264: initialize frame-mt context copies properly
authorJanne Grunau <janne-libav@jannau.net>
Sun, 9 Dec 2012 18:19:51 +0000 (19:19 +0100)
committerJanne Grunau <janne-libav@jannau.net>
Thu, 13 Dec 2012 20:02:42 +0000 (21:02 +0100)
libavcodec/h264.c

index e4887ff..12af810 100644 (file)
@@ -1125,6 +1125,8 @@ 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->s.context_initialized = 0;
+
     return 0;
 }