aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2012-10-13 03:05:13 +0200
committerMichael Niedermayer <michaelni@gmx.at>2012-10-13 03:32:38 +0200
commit3f010421421ff0af916cf16313a111dae71f837d (patch)
tree424ae3425e811842ff702138f5af52744306fdb6
parent3f350a482fd06196e60b5d4a9ad12e18e78469d1 (diff)
downloadffmpeg-3f010421421ff0af916cf16313a111dae71f837d.tar.gz
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@gmx.at>
-rw-r--r--libavcodec/celp_filters.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/celp_filters.c b/libavcodec/celp_filters.c
index 5e65c2eacf..a81fd8831b 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];