#define NONBE_FIX_1070_USAN_SEGFAULT_MC_TO_BIN_BTSW_HEADROT /* fix 1070 USAN: nullptr-with-offset and Segfaults in 7_1_4 to BINAURAL and BINAURAL_ROOM_REVERB decoding with bitrate switching and head rotation*/
#define REVERT_ZERO_FLUSH_TRESH /* FhG: issue 1069: revert threshold value introduced with !1518 due to significant complexity increase*/
#define NONBE_FIX_1097_SBA_DTX_BRATE_SWITCHING_ENC /* FhG: fix out-of-bound errors when switching from SID frame to active frame*/
#define NONBE_FIX_1110_STEREO_DTX_BRATE_SWITCHING /* VA: issue 1110: fix encoder crash in the stereo DTX bitrate switching condition */
/* ##################### End NON-BE switches ########################### */
floatinv_spectrum_long[MCT_MAX_CHANNELS-CPE_CHANNELS][L_FRAME48k];/* quantized MDCT spectrum, inv ms mask mdst spectrum, scratch for MS spectra in the MS decision */
floatpowerSpecMsInv_long[MCT_MAX_CHANNELS-CPE_CHANNELS][L_FRAME48k];/* MS inv power spectrum, also inverse MDST spectrum */
#else
floatpowerSpec[MCT_MAX_CHANNELS][L_FRAME48k];
floatpowerSpecMsInv_long[MCT_MAX_CHANNELS][L_FRAME48k];/* MS inv power spectrum, also inverse MDST spectrum */
floatinv_spectrum_long[MCT_MAX_CHANNELS][L_FRAME48k];/* quantized MDCT spectrum, inv ms mask mdst spectrum, scratch for MS spectra in the MS decision */
#endif
int16_ttotal_side_bits;
int16_tchBitRatios[MCT_MAX_CHANNELS];
Encoder_State*sts[MCT_MAX_CHANNELS];
@@ -238,12 +252,29 @@ void ivas_mct_core_enc(
nCPE++;
}
#ifdef NONBE_FIX_1097_SBA_DTX_BRATE_SWITCHING_ENC
/* point first CPE channels to longer buffers where switching from ACELP to TCX may occur in SBA with DTX (total memory saving)*/