1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-08-10 06:10:52 +02:00

lavf/img2dec: Reduce the probe score for incomplete jpgs.

Ensures that probing doesn't finish prematurely for small files.
This commit is contained in:
Carl Eugen Hoyos
2017-01-27 08:31:07 +01:00
parent f28299da8d
commit fca3083282

View File

@@ -756,7 +756,7 @@ static int jpeg_probe(AVProbeData *p)
if (state == EOI) if (state == EOI)
return AVPROBE_SCORE_EXTENSION + 1; return AVPROBE_SCORE_EXTENSION + 1;
if (state == SOS) if (state == SOS)
return AVPROBE_SCORE_EXTENSION / 2 + 1; return AVPROBE_SCORE_EXTENSION / 2;
return AVPROBE_SCORE_EXTENSION / 8; return AVPROBE_SCORE_EXTENSION / 8;
} }