sizeof(s->block) isnt 64*6*2 anymore bugfix
[ffmpeg.git] / libavcodec / mpeg12.c
index 4d61df53c2ac14dfd2b1cdb6159692b536ee8ed5..24fc5db85b5f975cd12f6f576a7c2b1d3adb9e50 100644 (file)
@@ -1402,7 +1402,7 @@ static int mpeg_decode_slice(AVCodecContext *avctx,
     }
 
     for(;;) {
-        memset(s->block, 0, sizeof(s->block));
+        clear_blocks(s->block[0]);
         ret = mpeg_decode_mb(s, s->block);
         dprintf("ret=%d\n", ret);
         if (ret < 0)