mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-24 13:56:33 +02:00
mp3: Tweak the probe scores
Having more than 10 consecutive frames decoded as mp3 should be considered a clear signal that the sample is mp3 and not mpegps. Reported-By: Florian Iragne <florian@iragne.fr> CC: libav-stable@libav.org
This commit is contained in:
parent
4f5906a1d7
commit
4fd7e63c87
@ -81,7 +81,10 @@ static int mp3_read_probe(AVProbeData *p)
|
|||||||
}
|
}
|
||||||
// keep this in sync with ac3 probe, both need to avoid
|
// keep this in sync with ac3 probe, both need to avoid
|
||||||
// issues with MPEG-files!
|
// issues with MPEG-files!
|
||||||
if (first_frames >= 4) return AVPROBE_SCORE_EXTENSION + 1;
|
if (first_frames >= 10)
|
||||||
|
return AVPROBE_SCORE_EXTENSION + 5;
|
||||||
|
if (first_frames >= 4)
|
||||||
|
return AVPROBE_SCORE_EXTENSION + 1;
|
||||||
|
|
||||||
if (max_frames) {
|
if (max_frames) {
|
||||||
int pes = 0, i;
|
int pes = 0, i;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user