]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/nellymoserenc.c
nellymoserenc: fix array index
[ffmpeg] / libavcodec / nellymoserenc.c
index 302c69cadeebf879ec46c530d74dfc3364632a29..98c2b390cc477ca45696dcf62b75e61a198f4e01 100644 (file)
@@ -231,7 +231,7 @@ static void get_exponent_dynamic(NellyMoserEncodeContext *s, float *cand, int *i
     float  (*opt )[OPT_SIZE] = s->opt ;
     uint8_t(*path)[OPT_SIZE] = s->path;
 
-    for (i = 0; i < NELLY_BANDS * OPT_SIZE; i++) {
+    for (i = 0; i < OPT_SIZE; i++) {
         opt[0][i] = INFINITY;
     }