This is an automated email from the git hooks/post-receive script.

Git pushed a commit to branch master
in repository ffmpeg.

commit 273141261699b660eed1b1c070fb8b1dd88c5218
Author:     Michael Niedermayer <[email protected]>
AuthorDate: Mon Sep 7 00:37:01 2026 +0200
Commit:     michaelni <[email protected]>
CommitDate: Sat Sep 19 01:16:28 2026 +0000

    avcodec/nellymoserenc: initialize the trellis table row by row
    
    Fixes: index 35768 out of bounds for type 'float[35768]'
    Fixes: 9UQo8TUCJdYw
    Found-by: Zheng Yu <[email protected]>
---
 libavcodec/nellymoserenc.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/libavcodec/nellymoserenc.c b/libavcodec/nellymoserenc.c
index 408193ad07..af516eb82e 100644
--- a/libavcodec/nellymoserenc.c
+++ b/libavcodec/nellymoserenc.c
@@ -243,9 +243,9 @@ 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++) {
-        opt[0][i] = INFINITY;
-    }
+    for (band = 0; band < NELLY_BANDS; band++)
+        for (i = 0; i < OPT_SIZE; i++)
+            opt[band][i] = INFINITY;
 
     for (i = 0; i < 64; i++) {
         opt[0][ff_nelly_init_table[i]] = distance(cand[0], 
ff_nelly_init_table[i], 0);

-- 
To stop receiving notification emails like this one, please contact
[email protected].
_______________________________________________
ffmpeg-cvslog mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to