mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-02-04 06:08:26 +02:00
Revert "avcodec/mjpegdec: fix SOF check in EOI"
This reverts commit fb5e2d71127ccae19c3f80ec363bb67d1871cb74.
This commit is contained in:
parent
4d3474432f
commit
4b1e1f706b
@ -2560,16 +2560,11 @@ eoi_parser:
|
||||
s->progressive && s->cur_scan && s->got_picture)
|
||||
mjpeg_idct_scan_progressive_ac(s);
|
||||
s->cur_scan = 0;
|
||||
if (!s->seen_sof) {
|
||||
if (!s->got_picture) {
|
||||
av_log(avctx, AV_LOG_WARNING,
|
||||
"Found EOI before any SOF, ignoring\n");
|
||||
break;
|
||||
}
|
||||
if (!s->got_picture && avctx->skip_frame != AVDISCARD_ALL) {
|
||||
av_log(avctx, AV_LOG_WARNING,
|
||||
"Found EOI before any SOS, ignoring\n");
|
||||
break;
|
||||
}
|
||||
if (s->interlaced) {
|
||||
s->bottom_field ^= 1;
|
||||
/* if not bottom field, do not output image yet */
|
||||
|
Loading…
x
Reference in New Issue
Block a user