From 807c4c787597407038750dcae6935134ed0f9015 Mon Sep 17 00:00:00 2001 From: Kenan Gillet Date: Wed, 15 Apr 2009 19:28:28 +0000 Subject: [PATCH] Fix possibly harmful outbound addressing. Patch by Kenan Gillet. Originally committed as revision 18528 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavcodec/celp_filters.c | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/libavcodec/celp_filters.c b/libavcodec/celp_filters.c index a48368f242..ef1a578f44 100644 --- a/libavcodec/celp_filters.c +++ b/libavcodec/celp_filters.c @@ -61,15 +61,14 @@ int ff_celp_lp_synthesis_filter( { int i,n; - // These two lines are to avoid a -1 subtraction in the main loop + // This line is to avoid a +1 subtraction in the main loop. filter_length++; - filter_coeffs--; for(n=0; n> 12) + in[n]; @@ -94,14 +93,13 @@ void ff_celp_lp_synthesis_filterf( { int i,n; - // These two lines are to avoid a -1 subtraction in the main loop + // This line is to avoid a +1 subtraction in the main loop filter_length++; - filter_coeffs--; for(n=0; n