diff options
author | Vittorio Giovara <vittorio.giovara@gmail.com> | 2014-10-30 00:51:56 +0000 |
---|---|---|
committer | Vittorio Giovara <vittorio.giovara@gmail.com> | 2014-11-03 12:45:42 -0500 |
commit | f52b8717617e94da90a45afdfff23e94f9ecf35c (patch) | |
tree | 88cdf883dbeb401dae9c9b24052e693e1a62a4e4 | |
parent | c442190a6bfd8036f6c32b78e1e96ff3b830f8f0 (diff) | |
download | ffmpeg-f52b8717617e94da90a45afdfff23e94f9ecf35c.tar.gz |
celp_filters: don't use filter lenght as loop bound
CC: libav-stable@libav.org
Bug-Id: CID 717906 / CID 717907 / CID 717916 /
CID 717917 / CID 717919 / CID 732259
-rw-r--r-- | libavcodec/celp_filters.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/celp_filters.c b/libavcodec/celp_filters.c index 381ffa4894..61474f5906 100644 --- a/libavcodec/celp_filters.c +++ b/libavcodec/celp_filters.c @@ -133,7 +133,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]; |