Commit 5bbf06ae authored by vaillancour's avatar vaillancour Committed by Sandesh Venkatesh
Browse files

possible fix for EVS BE issues

parent b79e0c58
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -137,4 +137,5 @@
#define NONBE_1211_DTX_BR_SWITCHING             /* VA: port float issue 1211: fix crash in MASA DTX bitrate switching */
#define FIX_1189_GSC_IVAS_OMASA                 /* VA: Fix for issue 1189: Bitstream desynchornization due to reading/writing of the GSC_IVAS_mode parameter */
#define FIX_ISSUE_1237                          /* VA: replacement of Copy_Scale_sig_16_32_DEPREC() that are doing 16 bits left shift by Copy_Scale_sig_16_32_no_sat() */
#define FIX_ISSUE_1237_KEEP_EVS_BE              /* VA: Fix to keep EVS bitexactness to 26.444 */
#endif
+11 −1
Original line number Diff line number Diff line
@@ -4121,8 +4121,18 @@ static void fec_ecu_dft_fx(
    tmp = Exp16Array( *Nfft, Tfr16 );
    *exp = add( tmp, add( 2, norm_s( *Nfft ) ) );
    move16();
#ifdef FIX_ISSUE_1237
    {
#ifdef FIX_ISSUE_1237_KEEP_EVS_BE
        Word16 loctmp = *exp;
        move16();
        loctmp = s_min( 15, loctmp );
#endif
        Copy_Scale_sig_16_32_no_sat( Tfr16, Tfr32, *Nfft, loctmp ); /*Qin+exp; */
    }
#else
    Copy_Scale_sig_16_32_DEPREC( Tfr16, Tfr32, *Nfft, *exp ); /*Qin+exp; */

#endif
    DoRTFTn_fx( Tfr32, Tfi32, *Nfft );
    N_LP = shr( *Nfft, 1 );