Commit 33776920 authored by Rivukanta Bhattacharya's avatar Rivukanta Bhattacharya
Browse files

Moved get decorr flag outside reconfig flag condition

parent f43119fc
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -549,6 +549,7 @@ void ivas_get_td_decorr_flag(

    ivas_total_brate = st_ivas->hDecoderConfig->ivas_total_brate;
    output_config = st_ivas->hDecoderConfig->output_config;

    if ( ( st_ivas->ivas_format == SBA_FORMAT ) && ( ( output_config == AUDIO_CONFIG_MONO || output_config == AUDIO_CONFIG_STEREO ) || ( ivas_total_brate >= IVAS_256k && output_config == AUDIO_CONFIG_FOA ) ) )
    {
        hSpar->td_decorr_flag = 0;
+1 −3
Original line number Diff line number Diff line
@@ -88,9 +88,6 @@ ivas_error ivas_spar_dec_open(
        {
            return IVAS_ERROR( IVAS_ERR_FAILED_ALLOC, "Can not allocate memory for SPAR decoder" );
        }
#ifdef FIX_163_SBA_TD_DECORR_OPT
        ivas_get_td_decorr_flag( hSpar, st_ivas );
#endif
    }

    output_Fs = st_ivas->hDecoderConfig->output_Fs;
@@ -105,6 +102,7 @@ ivas_error ivas_spar_dec_open(

    /* TD decorr. */
#ifdef FIX_163_SBA_TD_DECORR_OPT
    ivas_get_td_decorr_flag( hSpar, st_ivas );
    if ( hSpar->td_decorr_flag )
    {
#endif