Commit 375a22a4 authored by Carl Eugen Hoyos's avatar Carl Eugen Hoyos

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.
parent 4acea512
......@@ -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;
}
......
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