[FFmpeg-cvslog] lavfi/f_ebur128: replace pow(10,x) by ff_exp10(x)

Ganesh Ajjanagadde git at videolan.org
Fri Dec 25 19:50:19 CET 2015


ffmpeg | branch: master | Ganesh Ajjanagadde <gajjanagadde at gmail.com> | Wed Dec 23 10:04:04 2015 -0800| [e0024b9e5f5b174c542c90bc3006d36854d14af6] | committer: Ganesh Ajjanagadde

lavfi/f_ebur128: replace pow(10,x) by ff_exp10(x)

Reviewed-by: Clément Bœsch <u at pkh.me>
Signed-off-by: Ganesh Ajjanagadde <gajjanagadde at gmail.com>

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

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

diff --git a/libavfilter/f_ebur128.c b/libavfilter/f_ebur128.c
index b9577c5..c4b30b4 100644
--- a/libavfilter/f_ebur128.c
+++ b/libavfilter/f_ebur128.c
@@ -435,7 +435,7 @@ static int config_audio_output(AVFilterLink *outlink)
     return 0;
 }
 
-#define ENERGY(loudness) (pow(10, ((loudness) + 0.691) / 10.))
+#define ENERGY(loudness) (ff_exp10(((loudness) + 0.691) / 10.))
 #define LOUDNESS(energy) (-0.691 + 10 * log10(energy))
 #define DBFS(energy) (20 * log10(energy))
 



More information about the ffmpeg-cvslog mailing list