[libav-commits] nellymoserenc: fix array index

Vittorio Giovara git at libav.org
Thu Nov 13 01:46:53 CET 2014


Module: libav
Branch: master
Commit: bdcb5794f0c2d74371152303bffe4172671af264

Author:    Vittorio Giovara <vittorio.giovara at gmail.com>
Committer: Vittorio Giovara <vittorio.giovara at gmail.com>
Date:      Tue Nov 11 13:26:57 2014 +0100

nellymoserenc: fix array index

CC: libav-stable at libav.org
Bug-Id: CID 732258

---

 libavcodec/nellymoserenc.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavcodec/nellymoserenc.c b/libavcodec/nellymoserenc.c
index 302c69c..98c2b39 100644
--- a/libavcodec/nellymoserenc.c
+++ b/libavcodec/nellymoserenc.c
@@ -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;
     }
 



More information about the libav-commits mailing list