Loading lib_com/fine_gain_bits.c +6 −0 Original line number Diff line number Diff line Loading @@ -101,7 +101,9 @@ int16_t assign_gain_bits( int16_t *Rcalc /* o : Bit budget for shape quantizer (Q3) */ ) { #ifndef FIX_507_WARNINGS int16_t subband_cnt; #endif int16_t gain_bits_tot; int16_t i; Loading @@ -116,14 +118,18 @@ int16_t assign_gain_bits( } /* Re-adjust bit budget for gain quantization */ #ifndef FIX_507_WARNINGS subband_cnt = 0; #endif gain_bits_tot = 0; *Rcalc = 0; for ( i = 0; i < BANDS; i++ ) { if ( Rk[i] > 0 ) { #ifndef FIX_507_WARNINGS subband_cnt++; #endif Rk[i] -= gain_bits_array[i] * 8; gain_bits_tot += gain_bits_array[i]; *Rcalc += Rk[i]; Loading lib_com/hq_tools.c +4 −0 Original line number Diff line number Diff line Loading @@ -1228,7 +1228,9 @@ int16_t calc_nor_delta_hf( int16_t i; int16_t ynrm_t[44], normqlg2_t[44]; int16_t delta, max_delta, min_delta, bitsforDelta, add_bits_denv; #ifndef FIX_507_WARNINGS int16_t temp_num = 0; #endif max_delta = -100; calc_norm( t_audio, ynrm_t, normqlg2_t, 0, nb_sfm, sfmsize, sfm_start ); Loading Loading @@ -1290,7 +1292,9 @@ int16_t calc_nor_delta_hf( ynrm[i] += delta; add_bits_denv += bitsforDelta; #ifndef FIX_507_WARNINGS temp_num++; #endif } } Loading lib_com/options.h +1 −1 Original line number Diff line number Diff line Loading @@ -220,7 +220,7 @@ #define FIX_483 /* FhG: fix issue 483, division by zero in nois_est */ #define FIX_483b /* FhG: fix issue 483, uninitialized values in ivas_mct_core_enc */ #define FIX_507_WARNINGS /* FhG/Eri/Dlb/VA: Issue 507, Warnings on MacOS */ /* ################## End DEVELOPMENT switches ######################### */ /* clang-format on */ Loading Loading
lib_com/fine_gain_bits.c +6 −0 Original line number Diff line number Diff line Loading @@ -101,7 +101,9 @@ int16_t assign_gain_bits( int16_t *Rcalc /* o : Bit budget for shape quantizer (Q3) */ ) { #ifndef FIX_507_WARNINGS int16_t subband_cnt; #endif int16_t gain_bits_tot; int16_t i; Loading @@ -116,14 +118,18 @@ int16_t assign_gain_bits( } /* Re-adjust bit budget for gain quantization */ #ifndef FIX_507_WARNINGS subband_cnt = 0; #endif gain_bits_tot = 0; *Rcalc = 0; for ( i = 0; i < BANDS; i++ ) { if ( Rk[i] > 0 ) { #ifndef FIX_507_WARNINGS subband_cnt++; #endif Rk[i] -= gain_bits_array[i] * 8; gain_bits_tot += gain_bits_array[i]; *Rcalc += Rk[i]; Loading
lib_com/hq_tools.c +4 −0 Original line number Diff line number Diff line Loading @@ -1228,7 +1228,9 @@ int16_t calc_nor_delta_hf( int16_t i; int16_t ynrm_t[44], normqlg2_t[44]; int16_t delta, max_delta, min_delta, bitsforDelta, add_bits_denv; #ifndef FIX_507_WARNINGS int16_t temp_num = 0; #endif max_delta = -100; calc_norm( t_audio, ynrm_t, normqlg2_t, 0, nb_sfm, sfmsize, sfm_start ); Loading Loading @@ -1290,7 +1292,9 @@ int16_t calc_nor_delta_hf( ynrm[i] += delta; add_bits_denv += bitsforDelta; #ifndef FIX_507_WARNINGS temp_num++; #endif } } Loading
lib_com/options.h +1 −1 Original line number Diff line number Diff line Loading @@ -220,7 +220,7 @@ #define FIX_483 /* FhG: fix issue 483, division by zero in nois_est */ #define FIX_483b /* FhG: fix issue 483, uninitialized values in ivas_mct_core_enc */ #define FIX_507_WARNINGS /* FhG/Eri/Dlb/VA: Issue 507, Warnings on MacOS */ /* ################## End DEVELOPMENT switches ######################### */ /* clang-format on */ Loading