Loading lib_util/hrtf_file_reader.c +4 −0 Original line number Diff line number Diff line Loading @@ -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 ); Loading Loading
lib_util/hrtf_file_reader.c +4 −0 Original line number Diff line number Diff line Loading @@ -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 ); Loading