Resolve 1495: incorrect fread calls - basop part
- Related issues: ivas-codec-pc/ivas-codec#1495 (closed)
- Related float MR: ivas-codec-pc/ivas-codec!2481 (merged)
- Requested reviewers: @kiene
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