Commit 790a5483 authored by Jan Kiene's avatar Jan Kiene
Browse files

initialize IGF stereo mode in same manner

parent 75256a50
Loading
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -826,6 +826,8 @@ ivas_error create_cpe_dec(
#ifdef FIX_135_MDCT_STEREO_MODE_UNINITIALIZED
        hCPE->hStereoMdct->mdct_stereo_mode[0] = SMDCT_DUAL_MONO;
        hCPE->hStereoMdct->mdct_stereo_mode[1] = SMDCT_DUAL_MONO;
        hCPE->hStereoMdct->IGFStereoMode[0] = -1;
        hCPE->hStereoMdct->IGFStereoMode[1] = -1;
#endif
    }

+2 −0
Original line number Diff line number Diff line
@@ -218,11 +218,13 @@ void stereo_mdct_core_dec(
    initMdctStereoDecData( hCPE->hStereoMdct, sts[0]->igf, sts[0]->hIGFDec->igfData.igfInfo.grid, hCPE->element_brate, sts[0]->bwidth );

    hCPE->hStereoMdct->isSBAStereoMode = ( ( st_ivas->ivas_format == SBA_FORMAT ) && ( st_ivas->nchan_transport == 2 ) );
#ifndef FIX_135_MDCT_STEREO_MODE_UNINITIALIZED
    /*to prevent unitialized values during condition checks for stereo IGF*/
    if ( hCPE->hStereoMdct->isSBAStereoMode )
    {
        set_s( hCPE->hStereoMdct->IGFStereoMode, -1, 2 );
    }
#endif

    if ( !bfi )
    {