fix playback of angels_480-mjpegcompress.avi
authorMichael Niedermayer <michaelni@gmx.at>
Sat, 14 Apr 2007 22:58:23 +0000 (22:58 +0000)
committerMichael Niedermayer <michaelni@gmx.at>
Sat, 14 Apr 2007 22:58:23 +0000 (22:58 +0000)
Originally committed as revision 8737 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavcodec/mjpeg.c

index 4d63fe5..fc79772 100644 (file)
@@ -1791,7 +1791,7 @@ static int mjpeg_decode_app(MJpegDecodeContext *s)
             s->buggy_avid = 1;
 //        if (s->first_picture)
 //            printf("mjpeg: workarounding buggy AVID\n");
-        s->interlace_polarity = get_bits(&s->gb, 8);
+        s->bottom_field = get_bits(&s->gb, 8) == 2;
 #if 0
         skip_bits(&s->gb, 8);
         skip_bits(&s->gb, 32);