Commit c6e3b6a8 authored by Paul B Mahol's avatar Paul B Mahol

avfilter/af_anequalizer: use pow instead of exp10

Signed-off-by: 's avatarPaul B Mahol <onemda@gmail.com>
parent 56c7d2b4
......@@ -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);
......
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