Commit b4f69e03 authored by malenov's avatar malenov
Browse files

fix more #ifdef .. #endif statements for compliance with the WMC tool

parent 2a2e4e45
Loading
Loading
Loading
Loading
Loading
+4 −3
Original line number Diff line number Diff line
@@ -925,10 +925,11 @@ ivas_error ivas_dirac_dec_config(

                        ivas_dirac_dec_get_frequency_axis( frequency_axis, st_ivas->hDecoderConfig->output_Fs, st_ivas->hSpatParamRendCom->num_freq_bands );

                        if ( ( error = ivas_dirac_dec_decorr_open(
#ifdef SPLIT_REND_WITH_HEAD_ROT
                        if ( ( error = ivas_dirac_dec_decorr_open( &( st_ivas->hDiracDecBin[0]->h_freq_domain_decorr_ap_params ), &( st_ivas->hDiracDecBin[0]->h_freq_domain_decorr_ap_state ), st_ivas->hSpatParamRendCom->num_freq_bands, BINAURAL_CHANNELS, BINAURAL_CHANNELS,
                         &( st_ivas->hDiracDecBin[0]->h_freq_domain_decorr_ap_params ), &( st_ivas->hDiracDecBin[0]->h_freq_domain_decorr_ap_state ), st_ivas->hSpatParamRendCom->num_freq_bands, BINAURAL_CHANNELS, BINAURAL_CHANNELS,
#else
                        if ( ( error = ivas_dirac_dec_decorr_open( &( st_ivas->hDiracDecBin->h_freq_domain_decorr_ap_params ), &( st_ivas->hDiracDecBin->h_freq_domain_decorr_ap_state ), st_ivas->hSpatParamRendCom->num_freq_bands, BINAURAL_CHANNELS, BINAURAL_CHANNELS,
                         &( st_ivas->hDiracDecBin->h_freq_domain_decorr_ap_params ), &( st_ivas->hDiracDecBin->h_freq_domain_decorr_ap_state ), st_ivas->hSpatParamRendCom->num_freq_bands, BINAURAL_CHANNELS, BINAURAL_CHANNELS,
#endif
                               DIRAC_SYNTHESIS_PSD_LS, frequency_axis, BINAURAL_CHANNELS, st_ivas->hDecoderConfig->output_Fs ) ) != IVAS_ERR_OK )
                        {
+4 −6
Original line number Diff line number Diff line
@@ -1413,18 +1413,16 @@ ivas_error ivas_masa_dec_reconfigure(
    {
        if ( st_ivas->hDiracDecBin[pos_idx] != NULL )
        {
#else
    if ( st_ivas->hDiracDecBin != NULL )
    {
#endif
            /* regularization factor is bitrate-dependent */
#ifdef SPLIT_REND_WITH_HEAD_ROT
            st_ivas->hDiracDecBin[pos_idx]->reqularizationFactor = configure_reqularization_factor( st_ivas->ivas_format, st_ivas->hDecoderConfig->ivas_total_brate );
        }
#else
    if ( st_ivas->hDiracDecBin != NULL )
    {
        /* regularization factor is bitrate-dependent */
        st_ivas->hDiracDecBin->reqularizationFactor = configure_reqularization_factor( st_ivas->ivas_format, st_ivas->hDecoderConfig->ivas_total_brate );
#endif
    }
#endif

    if ( st_ivas->ivas_format == MASA_FORMAT && st_ivas->last_ivas_format == MASA_FORMAT ) /* note: switching within OMASA is handled in ivas_omasa_dec_config() */
    {
+2 −1
Original line number Diff line number Diff line
@@ -570,6 +570,7 @@ ivas_error ivas_sba_dec_reconfigure(
        {
            return error;
        }
    }
#else
    if ( st_ivas->hDiracDecBin != NULL )
    {
@@ -577,8 +578,8 @@ ivas_error ivas_sba_dec_reconfigure(
        {
            return error;
        }
#endif
    }
#endif

    /*-----------------------------------------------------------------*
     * CLDFB instances