celp_filters: don't use filter lenght as loop bound
authorVittorio Giovara <vittorio.giovara@gmail.com>
Thu, 30 Oct 2014 00:51:56 +0000 (00:51 +0000)
committerVittorio Giovara <vittorio.giovara@gmail.com>
Mon, 3 Nov 2014 17:45:42 +0000 (12:45 -0500)
CC: libav-stable@libav.org
Bug-Id: CID 717906 / CID 717907 / CID 717916 /
        CID 717917 / CID 717919 / CID 732259

libavcodec/celp_filters.c

index 381ffa4..61474f5 100644 (file)
@@ -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];