h264: reset the private data in init_thread_copy()
[ffmpeg.git] / libavcodec / h264.c
index 0b963e4..46c172a 100644 (file)
@@ -677,8 +677,8 @@ static int decode_init_thread_copy(AVCodecContext *avctx)
 
     if (!avctx->internal->is_copy)
         return 0;
-    memset(h->sps_buffers, 0, sizeof(h->sps_buffers));
-    memset(h->pps_buffers, 0, sizeof(h->pps_buffers));
+
+    memset(h, 0, sizeof(*h));
 
     ret = h264_init_context(avctx, h);
     if (ret < 0)