diff options
author | Vitor Sessak <vitor1001@gmail.com> | 2008-06-29 15:19:50 +0400 |
---|---|---|
committer | Vitor Sessak <vitor1001@gmail.com> | 2008-06-29 15:19:50 +0400 |
commit | 8a1c868ee6f279d93310e590fbc13e54df12a040 (patch) | |
tree | 9771073c5804bb2a16c1dafff9448ad1c6a7c1ab /libavcodec/acelp_filters.c | |
parent | a6ce3d3d2d40f4a24184a0693bb6ac2d69ba038c (diff) |
Add a rounding parameter to ff_acelp_lp_synthesis_filter()
Originally committed as revision 14028 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/acelp_filters.c')
-rw-r--r-- | libavcodec/acelp_filters.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/libavcodec/acelp_filters.c b/libavcodec/acelp_filters.c index 2aedbddab3..fb52d0f8c9 100644 --- a/libavcodec/acelp_filters.c +++ b/libavcodec/acelp_filters.c @@ -116,13 +116,14 @@ int ff_acelp_lp_synthesis_filter( const int16_t* in, int buffer_length, int filter_length, - int stop_on_overflow) + int stop_on_overflow, + int rounder) { int i,n; for(n=0; n<buffer_length; n++) { - int sum = 0x800; + int sum = rounder; for(i=1; i<filter_length; i++) sum -= filter_coeffs[i] * out[n-i]; |