ffmpeg | branch: master | Michael Niedermayer <mich...@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 <one...@gmail.com> Signed-off-by: Michael Niedermayer <mich...@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) _______________________________________________ ffmpeg-cvslog mailing list ffmpeg-cvslog@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog