[FFmpeg-devel] [PATCH 4/6] aacdec_usac: rename noise_scale to noise_bands

Lynne dev at lynne.ee
Sun Jun 16 11:54:46 EEST 2024


This was a typo.
---
 libavcodec/aac/aacdec.h      | 2 +-
 libavcodec/aac/aacdec_usac.c | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/libavcodec/aac/aacdec.h b/libavcodec/aac/aacdec.h
index 86faf6454a..d1a80e9ac1 100644
--- a/libavcodec/aac/aacdec.h
+++ b/libavcodec/aac/aacdec.h
@@ -315,7 +315,7 @@ typedef struct AACUsacElemConfig {
 
             uint8_t freq_scale; /* dflt_freq_scale */
             uint8_t alter_scale : 1; /* dflt_alter_scale */
-            uint8_t noise_scale; /* dflt_noise_scale */
+            uint8_t noise_bands; /* dflt_noise_bands */
 
             uint8_t limiter_bands; /* dflt_limiter_bands */
             uint8_t limiter_gains; /* dflt_limiter_gains */
diff --git a/libavcodec/aac/aacdec_usac.c b/libavcodec/aac/aacdec_usac.c
index 065bc869d9..eb0e7d3659 100644
--- a/libavcodec/aac/aacdec_usac.c
+++ b/libavcodec/aac/aacdec_usac.c
@@ -162,11 +162,11 @@ static void decode_usac_sbr_data(AACUsacElemConfig *e, GetBitContext *gb)
 
     e->sbr.dflt.freq_scale = 2;
     e->sbr.dflt.alter_scale = 1;
-    e->sbr.dflt.noise_scale = 2;
+    e->sbr.dflt.noise_bands = 2;
     if (header_extra1) {
         e->sbr.dflt.freq_scale = get_bits(gb, 2); /* dflt_freq_scale */
         e->sbr.dflt.alter_scale = get_bits1(gb); /* dflt_alter_scale */
-        e->sbr.dflt.noise_scale = get_bits(gb, 2); /* dflt_noise_scale */
+        e->sbr.dflt.noise_bands = get_bits(gb, 2); /* dflt_noise_bands */
     }
 
     e->sbr.dflt.limiter_bands = 2;
-- 
2.45.1.288.g0e0cd299f1


More information about the ffmpeg-devel mailing list