mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-22 07:20:45 +00:00
lavf/amr: Make the heuristic for auto-detection even stricter.
Fixes ticket #7270.
This commit is contained in:
parent
061e326b60
commit
40b7e60718
@ -201,7 +201,7 @@ static int amrnb_probe(AVProbeData *p)
|
||||
i++;
|
||||
}
|
||||
}
|
||||
if (valid > 100 && valid > invalid)
|
||||
if (valid > 100 && valid >> 4 > invalid)
|
||||
return AVPROBE_SCORE_EXTENSION / 2 + 1;
|
||||
return 0;
|
||||
}
|
||||
@ -258,8 +258,8 @@ static int amrwb_probe(AVProbeData *p)
|
||||
i++;
|
||||
}
|
||||
}
|
||||
if (valid > 100 && valid > invalid)
|
||||
return AVPROBE_SCORE_EXTENSION / 2 - 1;
|
||||
if (valid > 100 && valid >> 4 > invalid)
|
||||
return AVPROBE_SCORE_EXTENSION / 2 + 1;
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user