1000000l
authorMichael Niedermayer <michaelni@gmx.at>
Fri, 9 Jul 2004 22:29:08 +0000 (22:29 +0000)
committerMichael Niedermayer <michaelni@gmx.at>
Fri, 9 Jul 2004 22:29:08 +0000 (22:29 +0000)
Originally committed as revision 3301 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavcodec/parser.c

index 50888a8..7d84401 100644 (file)
@@ -328,7 +328,7 @@ static void mpegvideo_extract_headers(AVCodecParserContext *s,
                     break;
                 case 0x8: /* picture coding extension */
                     if (bytes_left >= 5) {
-                        picture_structure = (buf[3]>>5)&3;
+                        picture_structure = buf[2]&3;
                         top_field_first = buf[3] & (1 << 7);
                         repeat_first_field = buf[3] & (1 << 1);
                         progressive_frame = buf[4] & (1 << 7);