Skip to content
Snippets Groups Projects
Commit d85c5979 authored by Arpi's avatar Arpi
Browse files

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

Originally committed as revision 746 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent 14ac09bf
No related branches found
No related tags found
No related merge requests found
......@@ -1247,7 +1247,7 @@ static int mjpeg_decode_frame(AVCodecContext *avctx,
s->bottom_field ^= 1;
/* if not bottom field, do not output image yet */
if (s->bottom_field)
goto the_end;
goto not_the_end;
}
for(i=0;i<3;i++) {
picture->data[i] = s->current_picture[i];
......@@ -1313,6 +1313,7 @@ static int mjpeg_decode_frame(AVCodecContext *avctx,
#endif
}
}
not_the_end:
}
the_end:
return buf_ptr - buf;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment