comparison mjpegbdec.c @ 5985:51b4b51fa622 libavcodec

fix decoding of the first frame of gray.mov
author michael
date Wed, 05 Dec 2007 11:36:06 +0000
parents b4d41cc053b8
children fd69759904c7
comparison
equal deleted inserted replaced
5984:ba13cc3e38bb 5985:51b4b51fa622
107 } 107 }
108 108
109 if (s->interlaced) { 109 if (s->interlaced) {
110 s->bottom_field ^= 1; 110 s->bottom_field ^= 1;
111 /* if not bottom field, do not output image yet */ 111 /* if not bottom field, do not output image yet */
112 if (s->bottom_field && second_field_offs) 112 if (s->bottom_field != s->interlace_polarity && second_field_offs)
113 { 113 {
114 buf_ptr = buf + second_field_offs; 114 buf_ptr = buf + second_field_offs;
115 second_field_offs = 0; 115 second_field_offs = 0;
116 goto read_header; 116 goto read_header;
117 } 117 }