Accessing elements outside of array boundaries
https://gitlab.xiph.org/xiph/vorbis/-/blob/4ba8efed8797016a85e57bc3cc7975bb31d65db5/lib/psy.c#L340
I think it is better to modify this line of code as the following code. Otherwise, there is a danger of accessing outside the range of the array in line 347.
if(halfoc>=P_BANDS-2)halfoc=P_BANDS-2;