mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-24 00:02:52 +00:00
iirfilter: fix biquad filter coefficients.
The current filter implementation should only have the cx coefficients divided by gain in order to give the correct output scale.
This commit is contained in:
parent
edeb56fa31
commit
2f37321abc
@ -151,8 +151,6 @@ static int biquad_init_coeffs(void *avc, struct FFIIRFilterCoeffs *c,
|
||||
// during filtering, the delay state will include the gain multiplication
|
||||
c->cx[0] = lrintf(x0 / c->gain);
|
||||
c->cx[1] = lrintf(x1 / c->gain);
|
||||
c->cy[0] /= c->gain;
|
||||
c->cy[1] /= c->gain;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user