Commit 9b895ef5 authored by vaclav's avatar vaclav
Browse files

fix SR output

parent cadb4c71
Loading
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -1361,8 +1361,9 @@ static ivas_error IVAS_DEC_Setup(
         * - reconfigure the ISAR handle in case of bitrate switching (renderer might change)
         *-----------------------------------------------------------------*/

        if ( st_ivas->hDecoderConfig->output_config == IVAS_AUDIO_CONFIG_BINAURAL_SPLIT_CODED || st_ivas->hDecoderConfig->output_config == IVAS_AUDIO_CONFIG_BINAURAL_SPLIT_PCM ||
             ( st_ivas->hDecoderConfig->output_config == IVAS_AUDIO_CONFIG_STEREO && st_ivas->hDecoderConfig->Opt_non_diegetic_pan && st_ivas->hRenderConfig->split_rend_config.dof == 0 ) )
        if ( st_ivas->ini_frame == 0 && ( st_ivas->hDecoderConfig->output_config == IVAS_AUDIO_CONFIG_BINAURAL_SPLIT_CODED ||
                                          st_ivas->hDecoderConfig->output_config == IVAS_AUDIO_CONFIG_BINAURAL_SPLIT_PCM ||
                                          ( st_ivas->hDecoderConfig->output_config == IVAS_AUDIO_CONFIG_STEREO && st_ivas->hDecoderConfig->Opt_non_diegetic_pan && st_ivas->hRenderConfig->split_rend_config.dof == 0 ) ) )
        {
            if ( ( error = ivas_dec_init_split_rend( st_ivas ) ) != IVAS_ERR_OK )
            {
@@ -1378,7 +1379,6 @@ static ivas_error IVAS_DEC_Setup(
            }
        }


#endif
    }