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:
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