aacdec_usac: rename noise_scale to noise_bands

This was a typo.
release/7.1
Lynne 7 months ago
parent 89de2f0de1
commit a381cbc7c7
No known key found for this signature in database
GPG Key ID: A2FEA5F03F034464
  1. 2
      libavcodec/aac/aacdec.h
  2. 4
      libavcodec/aac/aacdec_usac.c

@ -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 */

@ -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;

Loading…
Cancel
Save