提交 5e2ea138 编写于 作者: R Reimar Döffinger

MJPEG: emulate EOI also on two consecutive SOI.

Fixes issue #362.
Signed-off-by: NReimar Döffinger <Reimar.Doeffinger@gmx.de>
上级 55a1fe7a
......@@ -1442,6 +1442,10 @@ int ff_mjpeg_decode_frame(AVCodecContext *avctx,
s->restart_count = 0;
/* nothing to do on SOI */
if (s->got_picture) {
av_log(avctx, AV_LOG_WARNING, "EOI missing, emulating\n");
goto eoi_parser;
}
break;
case DQT:
ff_mjpeg_decode_dqt(s);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册