mirror of https://git.ffmpeg.org/ffmpeg.git
MJPEG: emulate EOI also on two consecutive SOI.
Fixes issue #362. Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
This commit is contained in:
parent
55a1fe7a80
commit
5e2ea138b7
|
@ -1442,6 +1442,10 @@ int ff_mjpeg_decode_frame(AVCodecContext *avctx,
|
||||||
|
|
||||||
s->restart_count = 0;
|
s->restart_count = 0;
|
||||||
/* nothing to do on SOI */
|
/* nothing to do on SOI */
|
||||||
|
if (s->got_picture) {
|
||||||
|
av_log(avctx, AV_LOG_WARNING, "EOI missing, emulating\n");
|
||||||
|
goto eoi_parser;
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
case DQT:
|
case DQT:
|
||||||
ff_mjpeg_decode_dqt(s);
|
ff_mjpeg_decode_dqt(s);
|
||||||
|
|
Loading…
Reference in New Issue