Commit bde2b02d authored by vaclav's avatar vaclav
Browse files

fix

parent 2ce2759c
Loading
Loading
Loading
Loading
Loading
+16 −0
Original line number Original line Diff line number Diff line
@@ -345,6 +345,11 @@ void IVAS_DEC_Close(
        ( *phIvasDec )->hVoIP = NULL;
        ( *phIvasDec )->hVoIP = NULL;
    }
    }


#ifdef SPLIT_REND_WITH_HEAD_ROT
    /* destroy Split binaural renderer (ISAR) handle */
    ivas_destroy_handle_isar( &( *phIvasDec )->st_ivas->hSplitBinRend );
#endif

    if ( ( *phIvasDec )->st_ivas )
    if ( ( *phIvasDec )->st_ivas )
    {
    {
        ivas_destroy_dec( ( *phIvasDec )->st_ivas );
        ivas_destroy_dec( ( *phIvasDec )->st_ivas );
@@ -509,6 +514,17 @@ ivas_error IVAS_DEC_Configure(
        return error;
        return error;
    }
    }


#ifdef SPLIT_REND_WITH_HEAD_ROT
    /* create ISAR handle */
    if ( hDecoderConfig->output_config == IVAS_AUDIO_CONFIG_BINAURAL_SPLIT_CODED || hDecoderConfig->output_config == IVAS_AUDIO_CONFIG_BINAURAL_SPLIT_PCM )
    {
        if ( ( error = ivas_create_handle_isar( &st_ivas->hSplitBinRend ) ) != IVAS_ERR_OK )
        {
            return IVAS_ERROR( IVAS_ERR_FAILED_ALLOC, "Cannot allocate memory for ISAR handle" );
        }
    }
#endif

    if ( hIvasDec->mode == IVAS_DEC_MODE_EVS )
    if ( hIvasDec->mode == IVAS_DEC_MODE_EVS )
    {
    {
        hIvasDec->st_ivas->ivas_format = MONO_FORMAT;
        hIvasDec->st_ivas->ivas_format = MONO_FORMAT;