Commit eebddcf6 authored by vaclav's avatar vaclav
Browse files

Merge branch '1289-glitch-in-stereo-to-mono-decoding' into 'main'

[non-BE] Fix glitch when stereo signal is decoded to mono

See merge request !2037
parents cfe4edef 582fe87e
Loading
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -173,6 +173,7 @@

#define NONBE_1244_FIX_SWB_BWE_MEMORY                   /* VA: issue 1244: fix to SWB BWE memory in case of switching from FB coding - pending a review by Huawei */ 
#define NONBE_FIX_1180_HQMDCT_PHECU_LT_MUTING           /* Ericsson: issue 1180, corrected long term mute loop attnuation after 200ms  in PhECU-PLC  */
#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 ########################### */

+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;