diff options
author | Carl Eugen Hoyos <cehoyos@ag.or.at> | 2017-01-01 18:59:57 +0100 |
---|---|---|
committer | Carl Eugen Hoyos <cehoyos@ag.or.at> | 2017-01-01 18:59:57 +0100 |
commit | 375a22a472fd895632e2d4bc5a876100af0099aa (patch) | |
tree | 9e09ba619213a6c5fe6f4db6014d4f8135e943a6 /libavformat/img2dec.c | |
parent | 4acea512f36b96256535b45b1a7e723c61c89c31 (diff) | |
download | ffmpeg-375a22a472fd895632e2d4bc5a876100af0099aa.tar.gz |
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.
Diffstat (limited to 'libavformat/img2dec.c')
-rw-r--r-- | libavformat/img2dec.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libavformat/img2dec.c b/libavformat/img2dec.c index c8d70314f6..321189f38f 100644 --- a/libavformat/img2dec.c +++ b/libavformat/img2dec.c @@ -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; } |