Mercurial > libavcodec.hg
changeset 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 | ec5bae4d05a2 |
children | b0edd0683fc4 |
files | acelp_filters.c acelp_filters.h ra144.c |
diffstat | 3 files changed, 7 insertions(+), 3 deletions(-) [+] |
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;
--- a/acelp_filters.h Sun Jun 29 13:12:31 2008 +0000 +++ b/acelp_filters.h Sun Jun 29 21:37:03 2008 +0000 @@ -125,7 +125,7 @@ * \param filter_coeffs filter coefficients (-0x8000 <= (3.12) < 0x8000) * \param in input signal * \param buffer_length amount of data to process - * \param filter_length filter length (11 for 10th order LP filter) + * \param filter_length filter length (10 for 10th order LP filter) * \param stop_on_overflow 1 - return immediately if overflow occurs * 0 - ignore overflows * \param rounder the amount to add for rounding (usually 0x800 or 0xfff)
--- a/ra144.c Sun Jun 29 13:12:31 2008 +0000 +++ b/ra144.c Sun Jun 29 21:37:03 2008 +0000 @@ -209,9 +209,9 @@ BLOCKSIZE*sizeof(*ractx->curr_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)); }