Mercurial > libavcodec.hg
comparison mjpeg.c @ 540:4cee7ce37e10 libavcodec
don't exit decoder after decoding first field -> fixes angels.avi interlacing
author | arpi_esp |
---|---|
date | Thu, 11 Jul 2002 23:34:06 +0000 |
parents | d02d0e6db25c |
children | 4273be971bf8 |
comparison
equal
deleted
inserted
replaced
539:8af95bc44ab9 | 540:4cee7ce37e10 |
---|---|
1245 int l; | 1245 int l; |
1246 if (s->interlaced) { | 1246 if (s->interlaced) { |
1247 s->bottom_field ^= 1; | 1247 s->bottom_field ^= 1; |
1248 /* if not bottom field, do not output image yet */ | 1248 /* if not bottom field, do not output image yet */ |
1249 if (s->bottom_field) | 1249 if (s->bottom_field) |
1250 goto the_end; | 1250 goto not_the_end; |
1251 } | 1251 } |
1252 for(i=0;i<3;i++) { | 1252 for(i=0;i<3;i++) { |
1253 picture->data[i] = s->current_picture[i]; | 1253 picture->data[i] = s->current_picture[i]; |
1254 l = s->linesize[i]; | 1254 l = s->linesize[i]; |
1255 if (s->interlaced) | 1255 if (s->interlaced) |
1311 mjpeg_decode_com(s, s->buffer, input_size); | 1311 mjpeg_decode_com(s, s->buffer, input_size); |
1312 } | 1312 } |
1313 #endif | 1313 #endif |
1314 } | 1314 } |
1315 } | 1315 } |
1316 not_the_end: | |
1316 } | 1317 } |
1317 the_end: | 1318 the_end: |
1318 return buf_ptr - buf; | 1319 return buf_ptr - buf; |
1319 } | 1320 } |
1320 | 1321 |