Commit 79680702 authored by Michael Niedermayer's avatar Michael Niedermayer

avfilter/ebur128: Simplify by using log10()

Reviewed-by: 's avatarPaul B Mahol <onemda@gmail.com>
Signed-off-by: 's avatarMichael Niedermayer <michael@niedermayer.cc>
parent 47c3a10b
......@@ -368,7 +368,7 @@ EBUR128_FILTER(double, 1.0)
static double ebur128_energy_to_loudness(double energy)
{
return 10 * (log(energy) / log(10.0)) - 0.691;
return 10 * log10(energy) - 0.691;
}
static size_t find_histogram_index(double energy)
......
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