lavfi/af_anequalizer: replace pow(x,-2) by 1/(x*x)

Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Ganesh Ajjanagadde <gajjanagadde@gmail.com>
This commit is contained in:
Ganesh Ajjanagadde 2015-12-27 16:50:09 -08:00
parent 59ac7ce4da
commit 9f4c7b4df7

View File

@ -391,8 +391,8 @@ static void chebyshev1_bp_filter(EqualizatorFilter *f,
epsilon = sqrt((G*G - Gb*Gb) / (Gb*Gb - G0*G0));
g0 = pow(G0,1.0/N);
alfa = pow(1.0/epsilon + sqrt(1 + pow(epsilon,-2.0)), 1.0/N);
beta = pow(G/epsilon + Gb * sqrt(1 + pow(epsilon,-2.0)), 1.0/N);
alfa = pow(1.0/epsilon + sqrt(1 + 1/(epsilon*epsilon)), 1.0/N);
beta = pow(G/epsilon + Gb * sqrt(1 + 1/(epsilon*epsilon)), 1.0/N);
a = 0.5 * (alfa - 1.0/alfa);
b = 0.5 * (beta - g0*g0*(1/beta));
tetta_b = tan(wb/2);