Commit 56daa0f7 authored by multrus's avatar multrus
Browse files

[cleanup] accept FIX_BASOP_2592_OVERFLOW

parent 6278b016
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_BASOP_2592_OVERFLOW                         /* FhG: BASOP #2592: fix overflow in GetF0() */
#define FIX_BASOP_2591_EDGE_DETECT_COMP                 /* FhG: BASOP #2591: Wrong comparison in edge_detect_fx() */
#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 */
+0 −4
Original line number Diff line number Diff line
@@ -444,11 +444,7 @@ static void GetF0(
        {
            Word16 tmp_32 = 0;
            Word32 F0_32 = BASOP_Util_Divide3232_Scale_newton( L_shl( nSamplesCore, Q16 ), tmpPitchLag, &tmp_32 );
#ifdef FIX_BASOP_2592_OVERFLOW
            F0_32 = L_shl_sat( F0_32, tmp_32 - Q16 ); /* saturation needed to allow 0x40000000 << 1 */
#else
            F0_32 = L_shl( F0_32, tmp_32 - Q16 );
#endif
            *pF0_32 = F0_32;
            move32();
            *pOrigF0_32 = *pF0_32; /*Q26*/