Mismatch of the expected and provided function argument size in pre_proc_front_ivas()
- Related issues: #887 (closed)
- Requested reviewers: @kiene
Reason why this change is needed
One of the arguments of the function pre_proc_front_ivas()
is defined as
float fr_bands_LR[CPE_CHANNELS][2 * NB_BANDS]
but in SCE, the following parameter is passed as an argument to the function pre_proc_front_ivas()
:
float fr_bands_LR[1][2 * NB_BANDS]
This results in the following warning when compiled with gcc 11.4.0:
lib_enc/ivas_sce_enc.c:183:13: note: referencing argument 32 of type ‘float (*)[40]’
lib_enc/ivas_sce_enc.c:183:13: warning: ‘pre_proc_front_ivas’ reading 8 bytes from a region of size 4 [-Wstringop-overread]
Description of the change
The declaration of fr_bands
shall be changed to:
float fr_bands_LR[][2 * NB_BANDS]
Affected operating points
BE change.