Merge pull request #1340 from rururutan/master

PS2_MIC: Changed interleave value range check. [Kessen(JP)]
This commit is contained in:
bnnm 2023-04-09 21:59:53 +02:00 committed by GitHub
commit 4f85cf1152
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -20,7 +20,7 @@ VGMSTREAM* init_vgmstream_mic_koei(STREAMFILE* sf) {
channels = read_u32le(0x08,sf);
if (channels > 4) goto fail; /* 1/2/4 are known */
interleave = read_u32le(0x0c,sf);
if (interleave != 0x10) goto fail;
if (interleave != 0x10 && interleave != 0x20) goto fail;
loop_end = read_s32le(0x10,sf);
loop_start = read_s32le(0x14,sf);