lavf/amr: Make the heuristic for auto-detection even stricter.

Fixes ticket #7270.
This commit is contained in:
Carl Eugen Hoyos 2018-06-22 00:08:13 +02:00
parent 061e326b60
commit 40b7e60718

View File

@ -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;
}