diff options
author | Carl Eugen Hoyos | 2017-01-27 08:31:07 +0100 |
---|---|---|
committer | Carl Eugen Hoyos | 2017-01-27 08:31:07 +0100 |
commit | fca30832828af70f13de81c11f5346525c9f4b91 (patch) | |
tree | ae980646eec4bb813523aca4c1d5fa307c70d9b8 /libavformat/img2dec.c | |
parent | f28299da8d06f0f3fe0195edff727b246d0a34cf (diff) |
lavf/img2dec: Reduce the probe score for incomplete jpgs.
Ensures that probing doesn't finish prematurely for small files.
Diffstat (limited to 'libavformat/img2dec.c')
-rw-r--r-- | libavformat/img2dec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/img2dec.c b/libavformat/img2dec.c index 321189f38f..c3c2cf3640 100644 --- a/libavformat/img2dec.c +++ b/libavformat/img2dec.c @@ -756,7 +756,7 @@ 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 / 2; return AVPROBE_SCORE_EXTENSION / 8; } |