Commit 361e27a3 authored by Michael Niedermayer's avatar Michael Niedermayer

avcodec/mjpegdec: only run EOI emulation code when there was a scan

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 8893f31e
......@@ -1951,7 +1951,7 @@ eoi_parser:
"marker parser used %d bytes (%d bits)\n",
(get_bits_count(&s->gb) + 7) / 8, get_bits_count(&s->gb));
}
if (s->got_picture) {
if (s->got_picture && s->cur_scan) {
av_log(avctx, AV_LOG_WARNING, "EOI missing, emulating\n");
goto eoi_parser;
}
......
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