From patchwork Mon Dec 31 21:03:10 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Niedermayer X-Patchwork-Id: 11615 Return-Path: X-Original-To: patchwork@ffaux-bg.ffmpeg.org Delivered-To: patchwork@ffaux-bg.ffmpeg.org Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org [79.124.17.100]) by ffaux.localdomain (Postfix) with ESMTP id BF41E44CE54 for ; Mon, 31 Dec 2018 23:04:27 +0200 (EET) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 7AC2068A7FD; Mon, 31 Dec 2018 23:04:24 +0200 (EET) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from vie01a-dmta-pe05-3.mx.upcmail.net (vie01a-dmta-pe05-3.mx.upcmail.net [84.116.36.13]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 915CF68A586 for ; Mon, 31 Dec 2018 23:04:17 +0200 (EET) Received: from [172.31.216.235] (helo=vie01a-pemc-psmtp-pe12.mail.upcmail.net) by vie01a-dmta-pe05.mx.upcmail.net with esmtp (Exim 4.88) (envelope-from ) id 1ge4jZ-0003uD-0W for ffmpeg-devel@ffmpeg.org; Mon, 31 Dec 2018 22:04:25 +0100 Received: from localhost ([213.47.41.20]) by vie01a-pemc-psmtp-pe12.mail.upcmail.net with ESMTP id e4ibghzgp2WSse4ibg2ODa; Mon, 31 Dec 2018 22:03:25 +0100 X-Env-Mailfrom: michael@niedermayer.cc X-Env-Rcptto: ffmpeg-devel@ffmpeg.org X-SourceIP: 213.47.41.20 X-CNFS-Analysis: v=2.3 cv=E7kcWpVl c=1 sm=1 tr=0 a=I1eytVlZLDX1BM2VTtTtSw==:117 a=I1eytVlZLDX1BM2VTtTtSw==:17 a=MKtGQD3n3ToA:10 a=1oJP67jkp3AA:10 a=GEAsPZ9sns4A:10 a=ZZnuYtJkoWoA:10 a=J6oQCh6MpPJ_jOJ93usA:9 From: Michael Niedermayer To: FFmpeg development discussions and patches Date: Mon, 31 Dec 2018 22:03:10 +0100 Message-Id: <20181231210318.6130-3-michael@niedermayer.cc> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20181231210318.6130-1-michael@niedermayer.cc> References: <20181231210318.6130-1-michael@niedermayer.cc> MIME-Version: 1.0 X-CMAE-Envelope: MS4wfGwGyNAfm3Scm6/DtwWvN5kSGuqmWEyOOznTZAjUjj6Fc0Hln1V3KtzLF5ibDg4fRB9RCl4UJ+8MPSkPNZpDVmlauqDZX7sDOhhbTUr0Z+b4JKYhLAYP NZtMNwLWlfNL8keaukjEeh+rCY9yziSDObTTlbB+B9qaPDmfb3bAIvnn Subject: [FFmpeg-devel] [PATCH 03/11] avfilter/ebur128: Simplify by using log10() X-BeenThere: ffmpeg-devel@ffmpeg.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: FFmpeg development discussions and patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: FFmpeg development discussions and patches Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" Signed-off-by: Michael Niedermayer --- 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)