Commit 62053ebd authored by reutelhuber's avatar reutelhuber
Browse files

avoid allocating more than 1 hStereoDft struct for modes with more than 1 CPE

parent 0250a944
Loading
Loading
Loading
Loading

lib_dec/ivas_cpe_dec.c

100644 → 100755
+4 −0
Original line number Diff line number Diff line
@@ -731,7 +731,11 @@ ivas_error create_cpe_dec(
     * DFT stereo initialization
     *-----------------------------------------------------------------*/

#ifdef DFT_STEREO_SPAR_MIXING
    if ( hCPE->element_mode == IVAS_CPE_DFT || ( st_ivas->sba_dirac_stereo_flag && hCPE->cpe_id == 0 ) )
#else
    if ( hCPE->element_mode == IVAS_CPE_DFT || st_ivas->sba_dirac_stereo_flag )
#endif
    {
        if ( ( error = stereo_dft_dec_create( &( hCPE->hStereoDft ), hCPE->element_brate, output_Fs, st_ivas->sba_dirac_stereo_flag 
#ifdef DFT_STEREO_SPAR_MIXING