diff acelp_filters.c @ 7164:3c7f3265f970 libavcodec

Make ff_acelp_lp_synthesis_filter() receives a pointer to the actual filter coefficients and not the pointer minus one
author vitor
date Sun, 29 Jun 2008 21:37:03 +0000
parents 2b763a495c07
children d1e6d44fab47
line wrap: on
line diff
--- a/acelp_filters.c	Sun Jun 29 13:12:31 2008 +0000
+++ b/acelp_filters.c	Sun Jun 29 21:37:03 2008 +0000
@@ -121,6 +121,10 @@
 {
     int i,n;
 
+    // These two lines are two avoid a -1 subtraction in the main loop
+    filter_length++;
+    filter_coeffs--;
+
     for(n=0; n<buffer_length; n++)
     {
         int sum = rounder;