mirror of
https://github.com/xenia-project/FFmpeg.git
synced 2025-02-19 19:42:55 +00:00
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:
parent
47c3a10b16
commit
796807022c
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user