Skip to content

Incorrect fread call in TD binaural file reader

Wrong arguments in call to fread in hrtf_file_reader.c:

fread( &factor_Q, 1, sizeof( int16_t ), f_hrtf );

Should be

fread( &factor_Q, sizeof( int16_t ), 1, f_hrtf );

https://forge.3gpp.org/rep/ivas-codec-pc/ivas-codec/-/blob/main/lib_util/hrtf_file_reader.c#L544

The result is the same, but it is a bit confusing and could perhaps trigger errors on certain platforms.