mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-28 02:12:28 +00:00
avfilter/af_crossfeed: fix calculation of alpha parameter
Use A in calculation.
This commit is contained in:
parent
c7d8082357
commit
0ec61fcff7
@ -62,7 +62,7 @@ static int config_input(AVFilterLink *inlink)
|
||||
double w0 = 2 * M_PI * (1. - s->range) * 2100 / inlink->sample_rate;
|
||||
double alpha;
|
||||
|
||||
alpha = sin(w0) / 2 * sqrt(2 * (1 / 0.5 - 1) + 2);
|
||||
alpha = sin(w0) / 2 * sqrt((A + 1 / A) * (1 / 0.5 - 1) + 2);
|
||||
|
||||
s->a0 = (A + 1) + (A - 1) * cos(w0) + 2 * sqrt(A) * alpha;
|
||||
s->a1 = -2 * ((A - 1) + (A + 1) * cos(w0));
|
||||
|
Loading…
Reference in New Issue
Block a user