[FFmpeg-cvslog] nellymoserenc: fix array index

Vittorio Giovara git at videolan.org
Thu Nov 13 12:52:04 CET 2014


ffmpeg | branch: master | Vittorio Giovara <vittorio.giovara at gmail.com> | Tue Nov 11 13:26:57 2014 +0100| [bdcb5794f0c2d74371152303bffe4172671af264] | committer: Vittorio Giovara

nellymoserenc: fix array index

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

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=bdcb5794f0c2d74371152303bffe4172671af264
---

 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 ffmpeg-cvslog mailing list