diff options
author | Carl Eugen Hoyos <ceffmpeg@gmail.com> | 2020-12-09 23:42:33 +0100 |
---|---|---|
committer | Carl Eugen Hoyos <ceffmpeg@gmail.com> | 2020-12-11 00:23:41 +0100 |
commit | 7ab5192260c387a10998481fe1468f1304f6ebd2 (patch) | |
tree | d7ccfa013b592cdc6a859bb334f04c1f570364bd | |
parent | 072835898d321a6e3eb33e29331bc8d1ad7434a7 (diff) | |
download | ffmpeg-7ab5192260c387a10998481fe1468f1304f6ebd2.tar.gz |
lavf/rawdec: Return a low score if the mjpeg probe function detected one frame.
Fixes ticket #9026.
-rw-r--r-- | libavformat/rawdec.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libavformat/rawdec.c b/libavformat/rawdec.c index 10c37c5cb9..122afca1b6 100644 --- a/libavformat/rawdec.c +++ b/libavformat/rawdec.c @@ -208,6 +208,8 @@ static int mjpeg_probe(const AVProbeData *p) return AVPROBE_SCORE_EXTENSION / 2; return AVPROBE_SCORE_EXTENSION / 4; } + if (!nb_invalid && nb_frames) + return AVPROBE_SCORE_EXTENSION / 4; return 0; } |