diff acelp_filters.c @ 7161:2b763a495c07 libavcodec

Add a rounding parameter to ff_acelp_lp_synthesis_filter()
author vitor
date Sun, 29 Jun 2008 11:19:50 +0000
parents 94465a2c3b34
children 3c7f3265f970
line wrap: on
line diff
--- a/acelp_filters.c	Sun Jun 29 08:32:27 2008 +0000
+++ b/acelp_filters.c	Sun Jun 29 11:19:50 2008 +0000
@@ -116,13 +116,14 @@
         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];