mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-02-17 04:17:05 +00:00
lavf/rawdec: Return a low score if the mjpeg probe function detected one frame.
Fixes ticket #9026.
This commit is contained in:
parent
072835898d
commit
7ab5192260
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user