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

Git pushed a commit to branch master
in repository ffmpeg.

commit d314aa0c8fed9d99cc3aa77d2cc4078635b3c765
Author:     Michael Niedermayer <[email protected]>
AuthorDate: Sun Oct 11 07:19:20 2026 +0200
Commit:     michaelni <[email protected]>
CommitDate: Mon Oct 12 21:18:53 2026 +0000

    avcodec/aac: do not overwrite avctx->ch_layout when restoring the output 
configuration
    
    ff_aac_output_configure() copies the restored layout into avctx->ch_layout,
    the plain assignment before it dropped whatever avctx->ch_layout owned.
    
    This is hardening, no leak was replicated.
    Found during the review of https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/24677
---
 libavcodec/aac/aacdec.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/libavcodec/aac/aacdec.c b/libavcodec/aac/aacdec.c
index fdebe139c3..66ab648016 100644
--- a/libavcodec/aac/aacdec.c
+++ b/libavcodec/aac/aacdec.c
@@ -472,7 +472,6 @@ static void pop_output_configuration(AACDecContext *ac)
     if (ac->oc[1].status != OC_LOCKED && ac->oc[0].status != OC_NONE) {
         copy_oc(&ac->oc[1], &ac->oc[0]);
 
-        ac->avctx->ch_layout = ac->oc[1].ch_layout;
         ff_aac_output_configure(ac, ac->oc[1].layout_map, 
ac->oc[1].layout_map_tags,
                                 ac->oc[1].status, 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