Commit af68aa78 authored by Mohammadreza Naghibzadeh's avatar Mohammadreza Naghibzadeh
Browse files

Add two-bit headroom to the normalization of inputs in calc_residu_fx().

parent a11ec195
Loading
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -667,8 +667,9 @@ ivas_error acelp_core_enc_fx(
         *---------------------------------------------------------------*/

#ifdef FIX_BASOP_2517_CLICK_IN_OMASA_LTV
        Word16 scf = norm_arr( inp - M, add( st->L_frame, M ) );
        IF( GT_16( scf, 0 ) )
        Word16 scf = sub( norm_arr( inp - M, add( st->L_frame, M ) ), 2 );
        test();
        IF( NE_16( st->element_mode, EVS_MONO ) && GT_16( scf, 0 ) )
        {
            Word16 inp_local_acelp[L_FRAME16k + M];
            Copy_Scale_sig( inp - M, inp_local_acelp, add( st->L_frame, M ), scf );