Commit e5b86327 authored by vaclav's avatar vaclav
Browse files

issue 1289: Fix glitch when stereo signal is decoded to mono n TD->DFT...

issue 1289: Fix glitch when stereo signal is decoded to mono n TD->DFT switching; under NONBE_1289_STEREO_SW_TO_MONO
parent 7dc55586
Loading
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -176,6 +176,8 @@


#define NONBE_1231_BASOP_819_THRESHOLD_MASA2TOTAL        /* Nokia: add fix for precision limitation in comparison with masa2total energy ratio threshold to be aligned with BASOP*/
#define NONBE_1289_STEREO_SW_TO_MONO                    /* VA: issue 1289: Fix glitch when stereo signal is decoded to mono n TD->DFT switching */

/* ##################### End NON-BE switches ########################### */

/* ################## End DEVELOPMENT switches ######################### */
+4 −0
Original line number Diff line number Diff line
@@ -1141,7 +1141,11 @@ void synchro_synthesis(
        /* handling of TD->DFT switching */
        for ( n = 0; n < hCPE->nchan_out; n++ )
        {
#ifdef NONBE_1289_STEREO_SW_TO_MONO
            if ( ( !use_cldfb_for_last_dft && hCPE->last_element_mode != IVAS_CPE_DFT && !sba_dirac_stereo_flag && dft_mono_brate_switch != -1 ) || dft_mono_brate_switch == 1 )
#else
            if ( ( hCPE->last_element_mode != IVAS_CPE_DFT && !sba_dirac_stereo_flag && dft_mono_brate_switch != -1 ) || dft_mono_brate_switch == 1 )
#endif
            {
                float *pPrev_synth;
                float inv_fade_len = 1.f / delay_diff;