aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCarl Eugen Hoyos <ceffmpeg@gmail.com>2020-12-09 23:42:33 +0100
committerCarl Eugen Hoyos <ceffmpeg@gmail.com>2020-12-11 00:23:41 +0100
commit7ab5192260c387a10998481fe1468f1304f6ebd2 (patch)
treed7ccfa013b592cdc6a859bb334f04c1f570364bd
parent072835898d321a6e3eb33e29331bc8d1ad7434a7 (diff)
downloadffmpeg-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.c2
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;
}