comparison mpegvideo_parser.c @ 6382:ca7cacd556ff libavcodec

revert 12156 Log: Make timestamp interpolation work with mpeg2 field pictures. Cleaner/simpler solutions are welcome. ---- A IMHO cleaner solution has been implemented.
author michael
date Wed, 20 Feb 2008 20:24:38 +0000
parents 83a04925520d
children cb31fe7bd914
comparison
equal deleted inserted replaced
6381:83a04925520d 6382:ca7cacd556ff
34 int frame_rate_ext_n, frame_rate_ext_d; 34 int frame_rate_ext_n, frame_rate_ext_d;
35 int picture_structure, top_field_first, repeat_first_field, progressive_frame; 35 int picture_structure, top_field_first, repeat_first_field, progressive_frame;
36 int horiz_size_ext, vert_size_ext, bit_rate_ext; 36 int horiz_size_ext, vert_size_ext, bit_rate_ext;
37 //FIXME replace the crap with get_bits() 37 //FIXME replace the crap with get_bits()
38 s->repeat_pict = 0; 38 s->repeat_pict = 0;
39 s->parity = 0;
40 buf_end = buf + buf_size; 39 buf_end = buf + buf_size;
41 while (buf < buf_end) { 40 while (buf < buf_end) {
42 start_code= -1; 41 start_code= -1;
43 buf= ff_find_start_code(buf, buf_end, &start_code); 42 buf= ff_find_start_code(buf, buf_end, &start_code);
44 bytes_left = buf_end - buf; 43 bytes_left = buf_end - buf;