Closed zackees closed 1 year ago
Looking at the code further it looks like there maximum index is 14 so this is just a compiler warning that can be ignored.
This is part of the original code and has not been changed by me
I've verified that this the memory in question cannot be accessed. The parameter in question specifies a float[16] but a float[15] is passed in, triggering the warning. However, it appears from examining the code that the index only goes as high as 14, so float[15] should be fine here.
Closing.
From this build log https://github.com/zackees/arduino-liblame/actions/runs/3699790602/jobs/6267520761
We see that functions
VBR_new_prepare
,VBR_old_iteration_loop
andVBR_old_prepare
are problematic.Looking into the source code for
VBR_new_prepare
we seeint framebits[16]
:But when it's called from
VBR_new_itereration_loop
we see this: