Commit c08eaa99 authored by Dominik Weckbecker's avatar Dominik Weckbecker 💬
Browse files

rewrite condition in ivas_cpe_dec

parent 95a1970c
Loading
Loading
Loading
Loading
Loading
+8 −5
Original line number Diff line number Diff line
@@ -498,13 +498,16 @@ ivas_error ivas_cpe_dec(
        synchro_synthesis( ivas_total_brate, hCPE, output, output_frame, 0 );
    }

    if ( hCPE->element_mode == IVAS_CPE_MDCT && hCPE->nchan_out == 1 && ( is_DTXrate( ivas_total_brate ) == 0 || ( is_DTXrate( ivas_total_brate ) == 1 && is_DTXrate( st_ivas->hDecoderConfig->last_ivas_total_brate ) == 0 ) ) 
    if ( hCPE->element_mode == IVAS_CPE_MDCT && hCPE->nchan_out == 1 && ( is_DTXrate( ivas_total_brate ) == 0 || ( is_DTXrate( ivas_total_brate ) == 1 && is_DTXrate( st_ivas->hDecoderConfig->last_ivas_total_brate ) == 0 ) ) )
    {
#ifdef FIX_1518
        && !(st_ivas->ivas_format == SBA_ISM_FORMAT && st_ivas->ism_mode == ISM_MODE_NONE)
#endif
    )
        if ( !(st_ivas->ivas_format == SBA_ISM_FORMAT && st_ivas->ism_mode == ISM_MODE_NONE) )
        {
#endif
            applyDmxMdctStereo( hCPE, output, output_frame );
#ifdef FIX_1518
        }
#endif
    }

#ifndef DEBUG_STEREO_DFT_OUTRESPRED