mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-02-04 06:08:26 +02:00
lavc/mjpegdec: consume SOS data even if the frame is discarded
Speeds up next marker search when a SOS marker is found but the frame is discarded (which happens in avformat_find_stream_info).
This commit is contained in:
parent
383057f8e7
commit
2ae8278832
@ -2247,8 +2247,10 @@ eoi_parser:
|
||||
goto the_end;
|
||||
case SOS:
|
||||
s->cur_scan++;
|
||||
if (avctx->skip_frame == AVDISCARD_ALL)
|
||||
if (avctx->skip_frame == AVDISCARD_ALL) {
|
||||
skip_bits(&s->gb, get_bits_left(&s->gb));
|
||||
break;
|
||||
}
|
||||
|
||||
if ((ret = ff_mjpeg_decode_sos(s, NULL, 0, NULL)) < 0 &&
|
||||
(avctx->err_recognition & AV_EF_EXPLODE))
|
||||
|
Loading…
x
Reference in New Issue
Block a user