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

Git pushed a commit to branch master
in repository ffmpeg.

The following commit(s) were added to refs/heads/master by this push:
     new bb6de744cc avcodec/opus/enc_psy: init intensity_stereo for silent 
frames
bb6de744cc is described below

commit bb6de744cc7220d08d62528baea27942e7cede77
Author:     Kacper Michajłow <[email protected]>
AuthorDate: Sun May 31 04:01:14 2026 +0200
Commit:     Kacper Michajłow <[email protected]>
CommitDate: Sat Jun 13 12:08:10 2026 +0200

    avcodec/opus/enc_psy: init intensity_stereo for silent frames
    
    Silent frames return early from ff_opus_psy_celt_frame_init before
    intensity_stereo is set, but postencode_update reads it into
    avg_is_band, causing a use-of-uninitialized-value. Set it to end_band
    like the non-silent path does.
    
    Signed-off-by: Kacper Michajłow <[email protected]>
---
 libavcodec/opus/enc_psy.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/libavcodec/opus/enc_psy.c b/libavcodec/opus/enc_psy.c
index ae9ae021d8..a7a1f1ff8e 100644
--- a/libavcodec/opus/enc_psy.c
+++ b/libavcodec/opus/enc_psy.c
@@ -312,6 +312,7 @@ void ff_opus_psy_celt_frame_init(OpusPsyContext *s, 
CeltFrame *f, int index)
     f->silence = silence;
     if (f->silence) {
         f->framebits = 0; /* Otherwise the silence flag eats up 16(!) bits */
+        f->intensity_stereo = f->end_band; /* Read by postencode_update for 
avg_is_band */
         return;
     }
 

_______________________________________________
ffmpeg-cvslog mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to