mirror of https://git.ffmpeg.org/ffmpeg.git
avfilter/af_anequalizer: use pow instead of exp10
Signed-off-by: Paul B Mahol <onemda@gmail.com>
This commit is contained in:
parent
56c7d2b4da
commit
c6e3b6a819
|
@ -307,9 +307,9 @@ static void butterworth_bp_filter(EqualizatorFilter *f,
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
G = exp10( G/20);
|
G = pow(10, G/20);
|
||||||
Gb = exp10(Gb/20);
|
Gb = pow(10, Gb/20);
|
||||||
G0 = exp10(G0/20);
|
G0 = pow(10, G0/20);
|
||||||
|
|
||||||
epsilon = sqrt((G * G - Gb * Gb) / (Gb * Gb - G0 * G0));
|
epsilon = sqrt((G * G - Gb * Gb) / (Gb * Gb - G0 * G0));
|
||||||
g = pow(G, 1.0 / N);
|
g = pow(G, 1.0 / N);
|
||||||
|
@ -376,9 +376,9 @@ static void chebyshev1_bp_filter(EqualizatorFilter *f,
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
G = exp10( G/20);
|
G = pow(10, G/20);
|
||||||
Gb = exp10(Gb/20);
|
Gb = pow(10, Gb/20);
|
||||||
G0 = exp10(G0/20);
|
G0 = pow(10, G0/20);
|
||||||
|
|
||||||
epsilon = sqrt((G*G - Gb*Gb) / (Gb*Gb - G0*G0));
|
epsilon = sqrt((G*G - Gb*Gb) / (Gb*Gb - G0*G0));
|
||||||
g0 = pow(G0,1.0/N);
|
g0 = pow(G0,1.0/N);
|
||||||
|
@ -449,9 +449,9 @@ static void chebyshev2_bp_filter(EqualizatorFilter *f,
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
G = exp10( G/20);
|
G = pow(10, G/20);
|
||||||
Gb = exp10(Gb/20);
|
Gb = pow(10, Gb/20);
|
||||||
G0 = exp10(G0/20);
|
G0 = pow(10, G0/20);
|
||||||
|
|
||||||
epsilon = sqrt((G*G - Gb*Gb) / (Gb*Gb - G0*G0));
|
epsilon = sqrt((G*G - Gb*Gb) / (Gb*Gb - G0*G0));
|
||||||
g = pow(G, 1.0 / N);
|
g = pow(G, 1.0 / N);
|
||||||
|
|
Loading…
Reference in New Issue