Merge remote-tracking branch 'rbultje/vp9-bugfixes'
[ffmpeg.git] / libavcodec / vp9.c
index 7f28b26..93b3c96 100644 (file)
@@ -879,7 +879,8 @@ static int decode_frame_header(AVCodecContext *ctx,
     }
 
     if (s->keyframe || s->intraonly) {
-        memset(s->counts.coef, 0, sizeof(s->counts.coef) + sizeof(s->counts.eob));
+        memset(s->counts.coef, 0, sizeof(s->counts.coef));
+        memset(s->counts.eob,  0, sizeof(s->counts.eob));
     } else {
         memset(&s->counts, 0, sizeof(s->counts));
     }