Commit 342b58e4 authored by Jan Kiene's avatar Jan Kiene
Browse files

add preprocessor switch for fix

parent 99b4c3e3
Loading
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -80,6 +80,7 @@
#define FIX_2084_FLOATING_POINT_LEFTOVERS                    /* FhG: convert floating-point leftovers in IVAS_ENC_FeedObjectMetadata() */
#define FIX_2141_ASSERT_IN_OMASA_BITRATE_SWITSCHING          /* FhG: Replace L_shl with L_shl_sat to prevent overflow when calculating scale factors for very small numbers in the logarithmic domain */
#define FIX_APA_EXECS_SCALING                                /* VA: fix scaling of JBM APA buffer */
#define FIX_BASOP_ASSERT_IN_TONAL_MDCT_PLC                   /* FhG: fix for issue 2165 - using saturating addition in tonal MDCT PLC function */

/* ################### End FIXES switches ########################### */

+4 −0
Original line number Diff line number Diff line
@@ -454,7 +454,11 @@ static void getEnvelope(

    FOR( i = 0; i < n2; i++ )
    {
#ifdef FIX_BASOP_ASSERT_IN_TONAL_MDCT_PLC
        sum = L_add_sat( sum, powerSpec[i] ); /*powerSpec_exp*/
#else
        sum = L_add( sum, powerSpec[i] ); /*powerSpec_exp*/
#endif
    }
    /* No need for PTR_INIT for powerSpec[i+n2] as we continue from the previous loop */
    FOR( i = 0; i < n1; i++ )