Fix array out of bound in decoder.c

This commit is contained in:
Alexandre-Xavier 2023-08-29 01:07:44 +00:00
parent 4f56cd4c09
commit e4742bcafb
1 changed files with 2 additions and 2 deletions

View File

@ -2730,8 +2730,8 @@ bool mp3dec000427d8(struct asistream *stream, u32 gr)
f32 *sp0c = stream->unk4664[0][0].unk00;
s32 i = 0;
if (stream->window_switching[gr][0] && stream->window_switching[gr][2] == 2) {
if (stream->window_switching[gr][4]) {
if (stream->window_switching[gr][0] && stream->block_type[gr][0] == 2) {
if (stream->mixed_block_flag[gr][0]) {
while (i++ < 36) {
*(sp10++) = *(sp0c++);
}