Commit 9d2e67e3 authored by arpi_esp's avatar arpi_esp

don't exit decoder after decoding first field -> fixes angels.avi interlacing

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@746 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent f834bd73
...@@ -1247,7 +1247,7 @@ static int mjpeg_decode_frame(AVCodecContext *avctx, ...@@ -1247,7 +1247,7 @@ static int mjpeg_decode_frame(AVCodecContext *avctx,
s->bottom_field ^= 1; s->bottom_field ^= 1;
/* if not bottom field, do not output image yet */ /* if not bottom field, do not output image yet */
if (s->bottom_field) if (s->bottom_field)
goto the_end; goto not_the_end;
} }
for(i=0;i<3;i++) { for(i=0;i<3;i++) {
picture->data[i] = s->current_picture[i]; picture->data[i] = s->current_picture[i];
...@@ -1313,6 +1313,7 @@ static int mjpeg_decode_frame(AVCodecContext *avctx, ...@@ -1313,6 +1313,7 @@ static int mjpeg_decode_frame(AVCodecContext *avctx,
#endif #endif
} }
} }
not_the_end:
} }
the_end: the_end:
return buf_ptr - buf; return buf_ptr - buf;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment