Commit 40b7e607 authored by Carl Eugen Hoyos's avatar Carl Eugen Hoyos

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

Fixes ticket #7270.
parent 061e326b
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment