Browse Source

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>
tags/n1.1
Michael Niedermayer 13 years ago
parent
commit
3f01042142
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavcodec/celp_filters.c

+ 1
- 1
libavcodec/celp_filters.c View File

@@ -136,7 +136,7 @@ void ff_celp_lp_synthesis_filterf(float *out, const float *filter_coeffs,
out2 -= val * old_out2; out2 -= val * old_out2;
out3 -= val * old_out3; out3 -= val * old_out3;


for (i = 5; i <= filter_length; i += 2) {
for (i = 5; i < filter_length; i += 2) {
old_out3 = out[-i]; old_out3 = out[-i];
val = filter_coeffs[i-1]; val = filter_coeffs[i-1];




Loading…
Cancel
Save