mirror of
https://gitee.com/openharmony/third_party_ffmpeg
synced 2024-11-23 19:30:05 +00:00
lavf/img2dec: Increase detection score of jpgs without EOI.
Also increases the score for large jpeg files. Fixes autodetection for the file from mpv issue 3973.
This commit is contained in:
parent
4acea512f3
commit
375a22a472
@ -755,6 +755,8 @@ static int jpeg_probe(AVProbeData *p)
|
||||
|
||||
if (state == EOI)
|
||||
return AVPROBE_SCORE_EXTENSION + 1;
|
||||
if (state == SOS)
|
||||
return AVPROBE_SCORE_EXTENSION / 2 + 1;
|
||||
return AVPROBE_SCORE_EXTENSION / 8;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user