# HG changeset patch # User vitor # Date 1214775423 0 # Node ID 3c7f3265f970378c2f4c5779dbe4aaae7114256e # Parent ec5bae4d05a20afdd64c2abd73ed14060620a6da Make ff_acelp_lp_synthesis_filter() receives a pointer to the actual filter coefficients and not the pointer minus one diff -r ec5bae4d05a2 -r 3c7f3265f970 acelp_filters.c --- 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; ncurr_sblock)); if (ff_acelp_lp_synthesis_filter( - ractx->curr_sblock + 10, lpc_coefs -1, + ractx->curr_sblock + 10, lpc_coefs, ractx->curr_sblock + 10, BLOCKSIZE, - 11, 1, 0xfff) + 10, 1, 0xfff) ) memset(ractx->curr_sblock, 0, 50*sizeof(*ractx->curr_sblock)); }