[FFmpeg-cvslog] ff_celp_lp_synthesis_filterf: change loop end check
Michael Niedermayer
git at videolan.org
Sat Oct 13 03:38:57 CEST 2012
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Sat Oct 13 03:05:13 2012 +0200| [3f010421421ff0af916cf16313a111dae71f837d] | committer: Michael Niedermayer
ff_celp_lp_synthesis_filterf: change loop end check
This makes no difference for supported input but avoids a
out of array read with input that is never passed in currently
Fixes CID717919
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=3f010421421ff0af916cf16313a111dae71f837d
---
libavcodec/celp_filters.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavcodec/celp_filters.c b/libavcodec/celp_filters.c
index 5e65c2e..a81fd88 100644
--- a/libavcodec/celp_filters.c
+++ b/libavcodec/celp_filters.c
@@ -136,7 +136,7 @@ void ff_celp_lp_synthesis_filterf(float *out, const float *filter_coeffs,
out2 -= val * old_out2;
out3 -= val * old_out3;
- for (i = 5; i <= filter_length; i += 2) {
+ for (i = 5; i < filter_length; i += 2) {
old_out3 = out[-i];
val = filter_coeffs[i-1];
More information about the ffmpeg-cvslog
mailing list