From c6e3b6a819a5955a0945ea063a81db487c2233a1 Mon Sep 17 00:00:00 2001 From: Paul B Mahol Date: Fri, 25 Dec 2015 15:00:06 +0100 Subject: [PATCH] avfilter/af_anequalizer: use pow instead of exp10 Signed-off-by: Paul B Mahol --- 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 a437e2b9dc..ae953225ad 100644 --- a/libavfilter/af_anequalizer.c +++ b/libavfilter/af_anequalizer.c @@ -307,9 +307,9 @@ static void butterworth_bp_filter(EqualizatorFilter *f, return; } - G = exp10( G/20); - Gb = exp10(Gb/20); - G0 = exp10(G0/20); + G = pow(10, G/20); + Gb = pow(10, Gb/20); + G0 = pow(10, G0/20); epsilon = sqrt((G * G - Gb * Gb) / (Gb * Gb - G0 * G0)); g = pow(G, 1.0 / N); @@ -376,9 +376,9 @@ static void chebyshev1_bp_filter(EqualizatorFilter *f, return; } - G = exp10( G/20); - Gb = exp10(Gb/20); - G0 = exp10(G0/20); + G = pow(10, G/20); + Gb = pow(10, Gb/20); + G0 = pow(10, G0/20); epsilon = sqrt((G*G - Gb*Gb) / (Gb*Gb - G0*G0)); g0 = pow(G0,1.0/N); @@ -449,9 +449,9 @@ static void chebyshev2_bp_filter(EqualizatorFilter *f, return; } - G = exp10( G/20); - Gb = exp10(Gb/20); - G0 = exp10(G0/20); + G = pow(10, G/20); + Gb = pow(10, Gb/20); + G0 = pow(10, G0/20); epsilon = sqrt((G*G - Gb*Gb) / (Gb*Gb - G0*G0)); g = pow(G, 1.0 / N);