From d17ce8fea756a30d380f0f0011f541498d581ff9 Mon Sep 17 00:00:00 2001 From: Tommy Vaillancourt Date: Tue, 23 Apr 2024 14:40:30 -0400 Subject: [PATCH] Propose fix for 746, frame boundaries issues --- lib_com/options.h | 2 ++ lib_dec/ivas_cpe_dec_fx.c | 2 ++ 2 files changed, 4 insertions(+) diff --git a/lib_com/options.h b/lib_com/options.h index c40a70e40..4dfb7d8e4 100644 --- a/lib_com/options.h +++ b/lib_com/options.h @@ -117,6 +117,8 @@ /* ##################### End NON-BE switches ########################### */ #define FIX_740_HQ_CORE_OVA // Proposed fix to solve overlap and add issue for HQ_CORE +#define FIX_746 // proposed fix to solve low bit-rate frame boundaries issues + /* ################## End DEVELOPMENT switches ######################### */ /* clang-format on */ diff --git a/lib_dec/ivas_cpe_dec_fx.c b/lib_dec/ivas_cpe_dec_fx.c index a8f9a12d0..918175abd 100644 --- a/lib_dec/ivas_cpe_dec_fx.c +++ b/lib_dec/ivas_cpe_dec_fx.c @@ -326,10 +326,12 @@ ivas_error ivas_cpe_dec_fx( { floatToFixed_arrL(&hCPE->output_mem[n][0], &hCPE->output_mem_fx[n][0], q_temp, NS2SA_fx2(st_ivas->hDecoderConfig->output_Fs, STEREO_DFT32MS_OVL_NS));//any q works } +#ifndef FIX_746 if (hCPE->input_mem[n] != NULL) { floatToFixed_arrL(&hCPE->input_mem[n][0], &hCPE->input_mem_fx[n][0], q_temp, NS2SA(hCPE->hCoreCoder[0]->output_Fs, STEREO_DFT32MS_OVL_NS)); } +#endif if (hCPE->input_mem_LB[n] != NULL) { floatToFixed_arrL(&hCPE->input_mem_LB[n][0], &hCPE->input_mem_LB_fx[n][0], q_temp, STEREO_DFT32MS_OVL_16k); -- GitLab