Commit 59ac7ce4 authored by Ganesh Ajjanagadde's avatar Ganesh Ajjanagadde

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

Reviewed-by: 's avatarPaul B Mahol <onemda@gmail.com>
Signed-off-by: 's avatarGanesh Ajjanagadde <gajjanagadde@gmail.com>
parent 63702014
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment