diff mbox

[FFmpeg-devel,03/11] avfilter/ebur128: Simplify by using log10()

Message ID 20181231210318.6130-3-michael@niedermayer.cc
State Accepted
Commit 796807022c939dc593aa2a3c0d1a4ad2b3770736
Headers show

Commit Message

Michael Niedermayer Dec. 31, 2018, 9:03 p.m. UTC
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
---
 libavfilter/ebur128.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox

Patch

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)