ffmpeg | branch: master | Carl Eugen Hoyos <ceho...@ag.or.at> | Sun Jan 1 18:59:57 2017 +0100| [375a22a472fd895632e2d4bc5a876100af0099aa] | committer: 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. > http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=375a22a472fd895632e2d4bc5a876100af0099aa --- libavformat/img2dec.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libavformat/img2dec.c b/libavformat/img2dec.c index c8d7031..321189f 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; } _______________________________________________ ffmpeg-cvslog mailing list ffmpeg-cvslog@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog