mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
avformat/mpeg: Decrease score by 1 for files with very little valid data
Fixes: 8233/PPY6574574605_cut.mp3 Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
parent
79e5c2ee2b
commit
20f7b4dfc9
@ -99,7 +99,7 @@ static int mpegps_probe(const AVProbeData *p)
|
|||||||
|
|
||||||
if (sys > invalid && sys * 9 <= pspack * 10)
|
if (sys > invalid && sys * 9 <= pspack * 10)
|
||||||
return (audio > 12 || vid > 3 || pspack > 2) ? AVPROBE_SCORE_EXTENSION + 2
|
return (audio > 12 || vid > 3 || pspack > 2) ? AVPROBE_SCORE_EXTENSION + 2
|
||||||
: AVPROBE_SCORE_EXTENSION / 2 + 1; // 1 more than mp3
|
: AVPROBE_SCORE_EXTENSION / 2 + (audio + vid + pspack > 1); // 1 more than mp3
|
||||||
if (pspack > invalid && (priv1 + vid + audio) * 10 >= pspack * 9)
|
if (pspack > invalid && (priv1 + vid + audio) * 10 >= pspack * 9)
|
||||||
return pspack > 2 ? AVPROBE_SCORE_EXTENSION + 2
|
return pspack > 2 ? AVPROBE_SCORE_EXTENSION + 2
|
||||||
: AVPROBE_SCORE_EXTENSION / 2; // 1 more than .mpg
|
: AVPROBE_SCORE_EXTENSION / 2; // 1 more than .mpg
|
||||||
|
Loading…
Reference in New Issue
Block a user