Commit 625234b0c9 for ffmpeg

commit 625234b0c94ca1e1c54d056445983de30ee5e9db
Author: Sylvestre Ledru <sylvestre@debian.org>
Date:   Mon Nov 9 14:56:17 2026 +0100

    avcodec/aac/aacdec_usac: fix 4:1 SBR ratio check

    coreSbrFrameLengthIndex 4 (ISO/IEC 23003-3, Table 70) is a 1024 sample
    core with 4:1 SBR, and is mapped to sbrRatioIndex 1 as in the spec. Both
    places computing ratio_mult/ratio_dec tested sbr_ratio == 4 for 4:1, which
    is never produced, so the branches were dead code.

    This has no effect today, since index 4 is rejected with
    AVERROR_PATCHWELCOME, but it would give a wrong core sample rate once 4:1
    SBR is supported.

    Regression since 0b67c83b2e ("aacdec_usac, aacsbr: implement SBR support
    for USAC").

    Same issue as Coverity (Firefox CID 1701842), which was reported in
    ff_mpeg4audio_get_config_gb().

diff --git a/libavcodec/aac/aacdec_usac.c b/libavcodec/aac/aacdec_usac.c
index e29457a1bd..f6722697e3 100644
--- a/libavcodec/aac/aacdec_usac.c
+++ b/libavcodec/aac/aacdec_usac.c
@@ -609,7 +609,7 @@ int ff_aac_usac_config_decode(AACDecContext *ac, AVCodecContext *avctx,
     } else if (sbr_ratio == 3) {
         ratio_mult = 2;
         ratio_dec = 1;
-    } else if (sbr_ratio == 4) {
+    } else if (sbr_ratio == 1) {
         ratio_mult = 4;
         ratio_dec = 1;
     } else {
@@ -2096,7 +2096,7 @@ int ff_aac_usac_decode_frame(AVCodecContext *avctx, AACDecContext *ac,
     } else if (sbr_ratio == 3) {
         ratio_mult = 2;
         ratio_dec = 1;
-    } else if (sbr_ratio == 4) {
+    } else if (sbr_ratio == 1) {
         ratio_mult = 4;
         ratio_dec = 1;
     } else {