From a58358be3cacf7fba5ad3ecff5c8c466324ce558 Mon Sep 17 00:00:00 2001 From: rtyag Date: Mon, 28 Jul 2025 16:35:49 +1000 Subject: [PATCH] MCT issue in debug mode --- lib_enc/ivas_mct_enc_fx.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/lib_enc/ivas_mct_enc_fx.c b/lib_enc/ivas_mct_enc_fx.c index 23a70ef97..5abdfa99a 100644 --- a/lib_enc/ivas_mct_enc_fx.c +++ b/lib_enc/ivas_mct_enc_fx.c @@ -621,6 +621,11 @@ ivas_error create_mct_enc_fx( #ifdef DEBUGGING hMCT->hBlockData[n]->hStereoMdct->mdct_stereo_mode_cmdl = SMDCT_MS_DECISION; +#ifdef DEBUG_FORCE_MDCT_STEREO_MODE + /*set all other members to defined states */ + hMCT->hBlockData[n]->hStereoMdct->fDualMono = 0; + hMCT->hBlockData[n]->hStereoMdct->fMSstereo = 0; +#endif #endif initMdctStereoEncData_fx( hMCT->hBlockData[n]->hStereoMdct, ivas_format, IVAS_CPE_MDCT, cp_bitrate, st_ivas->hEncoderConfig->max_bwidth, st_ivas->hCPE[0]->hCoreCoder[0]->igf, st_ivas->hCPE[0]->hCoreCoder[0]->igf ? st_ivas->hCPE[0]->hCoreCoder[0]->hIGFEnc->igfData.igfInfo.grid : NULL, 1 ); @@ -802,6 +807,11 @@ ivas_error mct_enc_reconfigure_fx( #ifdef DEBUGGING hMCT->hBlockData[n]->hStereoMdct->mdct_stereo_mode_cmdl = SMDCT_MS_DECISION; +#ifdef DEBUG_FORCE_MDCT_STEREO_MODE + /*set all other members to defined states */ + hMCT->hBlockData[n]->hStereoMdct->fDualMono = 0; + hMCT->hBlockData[n]->hStereoMdct->fMSstereo = 0; +#endif #endif initMdctStereoEncData_fx( hMCT->hBlockData[n]->hStereoMdct, ivas_format, IVAS_CPE_MDCT, cp_bitrate, st_ivas->hEncoderConfig->max_bwidth, st_ivas->hCPE[0]->hCoreCoder[0]->igf, st_ivas->hCPE[0]->hCoreCoder[0]->igf ? st_ivas->hCPE[0]->hCoreCoder[0]->hIGFEnc->igfData.igfInfo.grid : NULL, mem_init ); -- GitLab