Skip to content

Resolve 1495: incorrect fread calls

Reason why this change is needed

  • Wrong order of size and count arguments in call to fread in hrtf_file_reader.c, e.g.
    • fread( &factor_Q, 1, sizeof( int16_t ), f_hrtf );

      Should be

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

  • The result is the same since the product is calculated and the corresponding number of bytes are just read into the start address, but it is a bit confusing and could perhaps trigger errors on certain platforms.

Description of the change

  • Change order of size and count arguments in places where this is found to be wrong.

Affected operating points

  • All BE
Edited by norvell

Merge request reports

Loading