[FFmpeg-cvslog] iirfilter: fix biquad filter coefficients.
Justin Ruggles
git at videolan.org
Wed Jun 8 05:31:34 CEST 2011
ffmpeg | branch: master | Justin Ruggles <justin.ruggles at gmail.com> | Mon Jun 6 17:10:11 2011 -0400| [2f37321abcbf9be5f58647b17155c0e257949c0d] | committer: Justin Ruggles
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.
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=2f37321abcbf9be5f58647b17155c0e257949c0d
---
libavcodec/iirfilter.c | 2 --
1 files changed, 0 insertions(+), 2 deletions(-)
diff --git a/libavcodec/iirfilter.c b/libavcodec/iirfilter.c
index 98366e2..a942068 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;
}
More information about the ffmpeg-cvslog
mailing list