[FFmpeg-cvslog] avfilter/ebur128: Simplify by using log10()

Michael Niedermayer git at videolan.org
Wed Jan 2 01:24:15 EET 2019


ffmpeg | branch: master | Michael Niedermayer <michael at niedermayer.cc> | Mon Dec 31 21:07:09 2018 +0100| [796807022c939dc593aa2a3c0d1a4ad2b3770736] | committer: Michael Niedermayer

avfilter/ebur128: Simplify by using log10()

Reviewed-by: Paul B Mahol <onemda at gmail.com>
Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=796807022c939dc593aa2a3c0d1a4ad2b3770736
---

 libavfilter/ebur128.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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)



More information about the ffmpeg-cvslog mailing list