Commit fc57a62c authored by TYAGIRIS's avatar TYAGIRIS
Browse files

fix selection BE by increasing side ch energy thresh

parent bbecfcaf
Loading
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -1058,6 +1058,7 @@ typedef enum

#ifdef FIX_SBA_VANISHING_RESIDUAL
#define IVAS_SPAR_DYN_ACTIVEW_THRESH           (0.0039f)
#define IVAS_SPAR_SIDE_CH_DYN_ACTIVEW_THRESH   (32.0f)
#endif

#define MAX_QUANT_STRATS                        3
+1 −1
Original line number Diff line number Diff line
@@ -215,7 +215,7 @@ int16_t ivas_spar_get_activeW_flag(
        side_ch_var += hCovEnc->bb_var_lt[dmx_order[ch]];
    }

    if ( side_ch_var < EPSILON )
    if ( side_ch_var < ( IVAS_SPAR_SIDE_CH_DYN_ACTIVEW_THRESH * IVAS_SPAR_SIDE_CH_DYN_ACTIVEW_THRESH ) )
    {
        activeW_flag = 0;
    }