Commit fc217b92 authored by vaillancour's avatar vaillancour
Browse files

Fix proposal for 740, overlap issue in HQ-CORE

parent 4010db07
Loading
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -114,7 +114,7 @@
#define CR_2109_to_2112_cd0_ce0  /* This is related to the CRs include in the 26.444 package of 21-12. Concerns lead_deindexing and  */

/* ##################### End NON-BE switches ########################### */

#define FIX_740_HQ_CORE_OVA // Proposed fix to solve overlap and add issue for HQ_CORE
/* ################## End DEVELOPMENT switches ######################### */

/* clang-format on */
+2 −1
Original line number Diff line number Diff line
@@ -2473,8 +2473,9 @@ ivas_error ivas_core_dec(
             exp_old_out = Find_Max_Norm16(st->hHQ_core->old_out_fx + NS2SA(st->output_Fs, N_ZERO_MDCT_NS), NS2SA(st->output_Fs, N_ZERO_MDCT_NS) + NS2SA(st->output_Fs, PH_ECU_LOOKAHEAD_NS) - NS2SA(st->output_Fs, N_ZERO_MDCT_NS));
             exp_delay_buf_out = Find_Max_Norm16(st->delay_buf_out_fx, NS2SA(st->output_Fs, DELAY_CLDFB_NS));
             exp_synth_history = Find_Max_Norm16(st->hTcxDec->synth_history_fx + output_frame, 2 * output_frame - NS2SA(st->output_Fs, DELAY_CLDFB_NS) + NS2SA(st->output_Fs, PH_ECU_MEM_NS) - output_frame);
#ifndef FIX_740_HQ_CORE_OVA
             exp_synth_history += st->hTcxDec->q_synth_history_fx;

#endif
             exp_max = s_min(exp_synth_history, exp_ouput);
             exp_max = s_min(exp_max, exp_prev_synth_buffer); move16();
             exp_max = s_min(exp_max, exp_old_out); move16();