diff options
author | Justin Ruggles <justin.ruggles@gmail.com> | 2011-06-07 01:10:11 +0400 |
---|---|---|
committer | Justin Ruggles <justin.ruggles@gmail.com> | 2011-06-07 18:47:36 +0400 |
commit | 2f37321abcbf9be5f58647b17155c0e257949c0d (patch) | |
tree | e9447f4f1b24c5e8a608181ebab4742fb88f7f64 /libavcodec | |
parent | edeb56fa31071841125f723b741858a4187ee748 (diff) |
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.
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/iirfilter.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/libavcodec/iirfilter.c b/libavcodec/iirfilter.c index 98366e2c08..a942068aee 100644 --- a/libavcodec/iirfilter.c +++ b/libavcodec/iirfilter.c @@ -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; } |