From 31a78b718beb4cd5e73be90c3db5c7ea1eddb2f0 Mon Sep 17 00:00:00 2001
From: Ivan Kalvachev <ikalvachev@gmail.com>
Date: Sun, 20 Nov 2005 23:09:05 +0000
Subject: [PATCH] Mark all 12 block unused when there are no coded blocks Fixes
 422/444 artifacts

Originally committed as revision 4708 to svn://svn.ffmpeg.org/ffmpeg/trunk
---
 libavcodec/mpeg12.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavcodec/mpeg12.c b/libavcodec/mpeg12.c
index 94450a0a2dc..a97b8bbaa1c 100644
--- a/libavcodec/mpeg12.c
+++ b/libavcodec/mpeg12.c
@@ -1436,7 +1436,7 @@ static int mpeg_decode_mb(MpegEncContext *s,
                 }
             }
         }else{
-            for(i=0;i<6;i++)
+            for(i=0;i<12;i++)
                 s->block_last_index[i] = -1;
         }
     }
-- 
GitLab