avfilter/ebur128: Simplify by using log10()

Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
Michael Niedermayer 2018-12-31 21:07:09 +01:00
parent 47c3a10b16
commit 796807022c
1 changed files with 1 additions and 1 deletions

View File

@ -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)