1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

lavf/rawdec: Return a low score if the mjpeg probe function detected one frame.

Fixes ticket #9026.
This commit is contained in:
Carl Eugen Hoyos 2020-12-09 23:42:33 +01:00
parent 072835898d
commit 7ab5192260

View File

@ -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;
}