Commit 1e60bcb8 authored by vaclav's avatar vaclav
Browse files

Use hDecoderConfig intsead st_ivas->hDecoderConfig;

parent 506a8bfe
Loading
Loading
Loading
Loading
+6 −7
Original line number Diff line number Diff line
@@ -1024,7 +1024,7 @@ void ivas_spar_dec_upmixer(
     *---------------------------------------------------------------------*/

    /* set-up pointers */
    if ( st_ivas->hDecoderConfig->output_config != AUDIO_CONFIG_FOA )
    if ( hDecoderConfig->output_config != AUDIO_CONFIG_FOA )
    {
        /* at this point, output channels are used as intermediate procesing buffers */
        for ( in_ch = 0; in_ch < MAX_OUTPUT_CHANNELS; in_ch++ )
@@ -1065,7 +1065,7 @@ void ivas_spar_dec_upmixer(
    /* determine if we can skip certain data */
    ivas_spar_get_skip_mat( hSpar, numch_out, numch_in, num_spar_bands, b_skip_mat ); /* this can be precomputed based on bitrate and format*/

    numch_out_dirac = st_ivas->hDecoderConfig->nchan_out;
    numch_out_dirac = hDecoderConfig->nchan_out;

    for ( int16_t i_sf = 0; i_sf < MAX_PARAM_SPATIAL_SUBFRAMES; i_sf++ )
    {
@@ -1086,7 +1086,7 @@ void ivas_spar_dec_upmixer(
        for ( ts = 0; ts < MAX_PARAM_SPATIAL_SUBFRAMES; ts++ )
        {
            /* determine SPAR parameters for this time slots */
            ivas_spar_get_parameters( hSpar, st_ivas->hDecoderConfig, ts + i_sf * MAX_PARAM_SPATIAL_SUBFRAMES, numch_out, numch_in, num_spar_bands, mixer_mat );
            ivas_spar_get_parameters( hSpar, hDecoderConfig, ts + i_sf * MAX_PARAM_SPATIAL_SUBFRAMES, numch_out, numch_in, num_spar_bands, mixer_mat );

            for ( cldfb_band = 0; cldfb_band < num_cldfb_bands; cldfb_band++ )
            {
@@ -1135,9 +1135,9 @@ void ivas_spar_dec_upmixer(
            }
        }

        if ( st_ivas->hDecoderConfig->output_config != AUDIO_CONFIG_FOA
        if ( hDecoderConfig->output_config != AUDIO_CONFIG_FOA
#ifdef SPAR_STEREO_NO_DIRAC
             && st_ivas->hDecoderConfig->output_config != AUDIO_CONFIG_STEREO && st_ivas->hDecoderConfig->output_config != AUDIO_CONFIG_MONO
             && hDecoderConfig->output_config != AUDIO_CONFIG_STEREO && hDecoderConfig->output_config != AUDIO_CONFIG_MONO
#endif
        )
        {
@@ -1164,8 +1164,7 @@ void ivas_spar_dec_upmixer(
                }
                else
                {
                    if ( st_ivas->hDecoderConfig->output_config == AUDIO_CONFIG_FOA ||
                         !( st_ivas->hOutSetup.output_config == AUDIO_CONFIG_BINAURAL || st_ivas->hOutSetup.output_config == AUDIO_CONFIG_BINAURAL_ROOM ) )
                    if ( hDecoderConfig->output_config == AUDIO_CONFIG_FOA || !( st_ivas->hOutSetup.output_config == AUDIO_CONFIG_BINAURAL || st_ivas->hOutSetup.output_config == AUDIO_CONFIG_BINAURAL_ROOM ) )
                    {
                        for ( ts = 0; ts < MAX_PARAM_SPATIAL_SUBFRAMES; ts++ )
                        {