Unverified Commit 1d7875d7 authored by norvell's avatar norvell
Browse files

Add missing erroneous fread call

parent 4b08810e
Loading
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -806,7 +806,11 @@ static ivas_error TDREND_LoadBSplineBinary(
    {
        return IVAS_ERROR( IVAS_ERR_FAILED_ALLOC, "Could not allocate memory for hrtf data" );
    }
#ifdef FIX_1495_INCORRECT_FREAD_CALL
    fread( &factor_Q, sizeof( int16_t ), 1, f_hrtf );
#else    
    fread( &factor_Q, 1, sizeof( int16_t ), f_hrtf );
#endif
    q_scale = powf( 2.f, -1.f * factor_Q );

    fread( (int32_t *) model->EL_dyn, sizeof( int32_t ), model->AlphaN * HRTF_MODEL_N_SECTIONS, f_hrtf );