Commit 87fd9ba9 authored by multrus's avatar multrus
Browse files

[cleanup] accept FIX_NONBE_2580_USE_LENGTH_NOT_CONSTANT

parent e7f34e21
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -103,7 +103,6 @@
/* any switch which is non-be wrt. TS 26.251 V3.0 */

#define FIX_1576_LCLD_CRASH_DIFFERENT_CODEC_ISAR_FRAME_SIZE  /* Dolby: float issue 1576: fix for crash in LCLD mode when codec frame size is less than isar frame size */
#define FIX_NONBE_2580_USE_LENGTH_NOT_CONSTANT          /* Dolby: fix 2580: use dynamic length denominator for average energy in unclr_calc_corr_features_fx() */
#define FIX_BASOP_2599_TCA_OVERFLOW                     /* VA: issue 2599, Fix TCA overflow */
#define FIX_2588_MISSING_CONDITIONS                     /* VA: Proposed fix to 2588, addition of a condition in lsf_dec */
#define FIX_BASOP_2442_MASA2TC_TO_MONO_AND_AMBI         /* Nokia: BASOP issue 2442: Increase accuracy of computations and add additional gain clamp for low energy decorrelated signal rendering. */
+0 −2
Original line number Diff line number Diff line
@@ -2278,9 +2278,7 @@ static void unclr_calc_corr_features_fx(
    }

    /* average energy of L and R channels */
#ifdef FIX_NONBE_2580_USE_LENGTH_NOT_CONSTANT
    /* Note, that length is a fixed value equal to L_FRAME_DS, so 1/length = 1/160 = 13421772 */
#endif
    hStereoClassif->ave_ener_L_fx = Mpy_32_32( hStereoTCA->E1_mem_fx, 13421772 /* 1/length in Q31*/ ); /* Q31-hStereoClassif->ave_ener_L_fx_e */
    move32();
    hStereoClassif->ave_ener_L_fx_e = hStereoTCA->E1_mem_exp;