This is an automated email from the git hooks/post-receive script. Git pushed a commit to branch master in repository ffmpeg.
commit 88cb0da84a86b1ecdcaada1448360561cb3d78bd Author: Michael Niedermayer <[email protected]> AuthorDate: Mon Oct 12 03:04:40 2026 +0200 Commit: michaelni <[email protected]> CommitDate: Mon Oct 19 23:40:15 2026 +0000 avcodec/aac/aacdec_usac: apply SBR to the downmix and output it on both channels Found during triage/review of the security report GITTfi6VsK4u (ANT-2026-5KX1BXM6), which does not report this. --- libavcodec/aac/aacdec_usac.c | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/libavcodec/aac/aacdec_usac.c b/libavcodec/aac/aacdec_usac.c index 021f817fb8..ae63761030 100644 --- a/libavcodec/aac/aacdec_usac.c +++ b/libavcodec/aac/aacdec_usac.c @@ -1875,12 +1875,12 @@ static int decode_usac_core_coder(AACDecContext *ac, AACUSACConfig *usac, } } - if (ec->sbr.ratio) { - int sbr_ch = nb_channels; - if (nb_channels == 2 && - !(ec->stereo_config_index == 0 || ec->stereo_config_index == 3)) - sbr_ch = 1; + int sbr_ch = nb_channels; + if (nb_channels == 2 && + !(ec->stereo_config_index == 0 || ec->stereo_config_index == 3)) + sbr_ch = 1; + if (ec->sbr.ratio) { ret = ff_aac_sbr_decode_usac_data(ac, che, ec, gb, sbr_ch, indep_flag); if (ret < 0) return ret; @@ -1895,11 +1895,16 @@ static int decode_usac_core_coder(AACDecContext *ac, AACUSACConfig *usac, spectrum_decode(ac, usac, che, core_nb_channels); if (ac->oc[1].m4ac.sbr > 0) { - ac->proc.sbr_apply(ac, che, nb_channels == 2 ? TYPE_CPE : TYPE_SCE, 0, + ac->proc.sbr_apply(ac, che, sbr_ch == 2 ? TYPE_CPE : TYPE_SCE, 0, che->ch[0].output, che->ch[1].output); } + /* The MPS212 upmix is not implemented, output the downmix on both channels */ + if (sbr_ch < nb_channels) + memcpy(che->ch[1].output, che->ch[0].output, + ac->frame->nb_samples * sizeof(*che->ch[0].output)); + return 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]
