comparison parser.c @ 2120:872ac88d4e60 libavcodec

1000000l
author michael
date Fri, 09 Jul 2004 22:29:08 +0000
parents f8948ed6553a
children 535b7dfee202
comparison
equal deleted inserted replaced
2119:f8948ed6553a 2120:872ac88d4e60
326 avctx->sub_id = 2; /* forces MPEG2 */ 326 avctx->sub_id = 2; /* forces MPEG2 */
327 } 327 }
328 break; 328 break;
329 case 0x8: /* picture coding extension */ 329 case 0x8: /* picture coding extension */
330 if (bytes_left >= 5) { 330 if (bytes_left >= 5) {
331 picture_structure = (buf[3]>>5)&3; 331 picture_structure = buf[2]&3;
332 top_field_first = buf[3] & (1 << 7); 332 top_field_first = buf[3] & (1 << 7);
333 repeat_first_field = buf[3] & (1 << 1); 333 repeat_first_field = buf[3] & (1 << 1);
334 progressive_frame = buf[4] & (1 << 7); 334 progressive_frame = buf[4] & (1 << 7);
335 335
336 /* check if we must repeat the frame */ 336 /* check if we must repeat the frame */