OSDN Git Service

vc1dec: Don't attempt error concealment on field pictures
authorMichael Niedermayer <michaelni@gmx.at>
Tue, 24 Jul 2012 02:05:18 +0000 (04:05 +0200)
committerMartin Storsjö <martin@martin.st>
Tue, 14 May 2013 10:24:52 +0000 (13:24 +0300)
This is not implemented and doesn't work.

Signed-off-by: Martin Storsjö <martin@martin.st>
libavcodec/vc1dec.c

index c434f69..994f5df 100644 (file)
@@ -5630,7 +5630,8 @@ static int vc1_decode_frame(AVCodecContext *avctx, void *data,
                 get_bits_count(&s->gb), s->gb.size_in_bits);
 //  if (get_bits_count(&s->gb) > buf_size * 8)
 //      return -1;
-        ff_er_frame_end(&s->er);
+        if (!v->field_mode)
+            ff_er_frame_end(&s->er);
     }
 
     ff_MPV_frame_end(s);