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

Ganesh Ajjanagadde git at videolan.org
Tue Dec 29 01:50:32 CET 2015


ffmpeg | branch: master | Ganesh Ajjanagadde <gajjanagadde at gmail.com> | Sun Dec 27 16:48:52 2015 -0800| [59ac7ce4dac5b2a68c4afb827b03a595e2d2f32e] | committer: Ganesh Ajjanagadde

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

Reviewed-by: Paul B Mahol <onemda at gmail.com>
Signed-off-by: Ganesh Ajjanagadde <gajjanagadde at gmail.com>

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

 libavfilter/af_anequalizer.c |   18 +++++++++---------
 1 file changed, 9 insertions(+), 9 deletions(-)

diff --git a/libavfilter/af_anequalizer.c b/libavfilter/af_anequalizer.c
index e45c108..d7b5b6c 100644
--- a/libavfilter/af_anequalizer.c
+++ b/libavfilter/af_anequalizer.c
@@ -316,9 +316,9 @@ static void butterworth_bp_filter(EqualizatorFilter *f,
         return;
     }
 
-    G  = pow(10, G/20);
-    Gb = pow(10, Gb/20);
-    G0 = pow(10, G0/20);
+    G  = ff_exp10(G/20);
+    Gb = ff_exp10(Gb/20);
+    G0 = ff_exp10(G0/20);
 
     epsilon = sqrt((G * G - Gb * Gb) / (Gb * Gb - G0 * G0));
     g  = pow(G,  1.0 / N);
@@ -385,9 +385,9 @@ static void chebyshev1_bp_filter(EqualizatorFilter *f,
         return;
     }
 
-    G  = pow(10, G/20);
-    Gb = pow(10, Gb/20);
-    G0 = pow(10, G0/20);
+    G  = ff_exp10(G/20);
+    Gb = ff_exp10(Gb/20);
+    G0 = ff_exp10(G0/20);
 
     epsilon = sqrt((G*G - Gb*Gb) / (Gb*Gb - G0*G0));
     g0 = pow(G0,1.0/N);
@@ -458,9 +458,9 @@ static void chebyshev2_bp_filter(EqualizatorFilter *f,
         return;
     }
 
-    G  = pow(10, G/20);
-    Gb = pow(10, Gb/20);
-    G0 = pow(10, G0/20);
+    G  = ff_exp10(G/20);
+    Gb = ff_exp10(Gb/20);
+    G0 = ff_exp10(G0/20);
 
     epsilon = sqrt((G*G - Gb*Gb) / (Gb*Gb - G0*G0));
     g  = pow(G, 1.0 / N);



More information about the ffmpeg-cvslog mailing list