aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michael@niedermayer.cc>2018-12-31 21:07:09 +0100
committerMichael Niedermayer <michael@niedermayer.cc>2019-01-01 21:11:47 +0100
commit796807022c939dc593aa2a3c0d1a4ad2b3770736 (patch)
treecf3a8649691c8b236ac0d9ead3174bbe8ec339de
parent47c3a10b16f2721c7afa333869aafa8c007fb419 (diff)
downloadffmpeg-796807022c939dc593aa2a3c0d1a4ad2b3770736.tar.gz
avfilter/ebur128: Simplify by using log10()
Reviewed-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
-rw-r--r--libavfilter/ebur128.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavfilter/ebur128.c b/libavfilter/ebur128.c
index e11008078d..c8986fb5e1 100644
--- a/libavfilter/ebur128.c
+++ b/libavfilter/ebur128.c
@@ -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)