Commit 7ff1b557 authored by vaclav's avatar vaclav
Browse files

fix run when the HRTF file has wrong sampling rate

parent f8892886
Loading
Loading
Loading
Loading
Loading
+63 −55
Original line number Diff line number Diff line
@@ -211,7 +211,11 @@ static ivas_error ivas_rend_initCrend(
    {
#ifdef FIX_1227_Crend_HRTF_LOADING_OPTIM

#ifdef FIX_1227_Crend_HRTF_LOADING_OPTIM2
        if ( hSetOfHRTF != NULL && hSetOfHRTF->hHRTF_Crend != NULL && ext_rend_flag == 0 )
#else
        if ( hSetOfHRTF != NULL && ext_rend_flag == 0 )
#endif
        {
            /* HRTF set loaded from binary file */
#ifdef FIX_1227_Crend_HRTF_LOADING_OPTIM2
@@ -246,7 +250,11 @@ static ivas_error ivas_rend_initCrend(
            }

            hHrtf->init_from_rom = 1;
#ifdef FIX_1227_Crend_HRTF_LOADING_OPTIM2
            if ( hSetOfHRTF != NULL && hSetOfHRTF->hHRTF_Crend != NULL )
#else
            if ( hSetOfHRTF != NULL )
#endif
            {
                hHrtf->init_from_rom = 0;
            }
+0 −5
Original line number Diff line number Diff line
@@ -2209,11 +2209,6 @@ ivas_error create_SetOfHRTF_from_binary(
#endif
    }

#ifdef FIX_1227_Crend_HRTF_LOADING_OPTIM
    // just for debugging!!!
    assert( hHRTF != NULL );
#endif

    free( hrtf_data );

    return IVAS_ERR_OK;