From fe4a5b185fdb5a96c1c66018e113b5144b01f6f3 Mon Sep 17 00:00:00 2001 From: Vitor Sessak Date: Sun, 29 Jun 2008 21:37:03 +0000 Subject: [PATCH] Make ff_acelp_lp_synthesis_filter() receives a pointer to the actual filter coefficients and not the pointer minus one Originally committed as revision 14031 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavcodec/acelp_filters.c | 4 ++++ libavcodec/acelp_filters.h | 2 +- libavcodec/ra144.c | 4 ++-- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/libavcodec/acelp_filters.c b/libavcodec/acelp_filters.c index fb52d0f8c9..6e5b1f46d7 100644 --- a/libavcodec/acelp_filters.c +++ b/libavcodec/acelp_filters.c @@ -121,6 +121,10 @@ int ff_acelp_lp_synthesis_filter( { 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)); }