Merge pull request #1239 from NicknineTheEagle/ea

EA MPF: Fixed some v5 files
This commit is contained in:
NicknineTheEagle 2022-10-07 00:39:03 +03:00 committed by GitHub
commit cc10e2e116
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -997,8 +997,8 @@ VGMSTREAM* init_vgmstream_ea_mpf_mus(STREAMFILE* sf) {
total_streams = (eof_offset - samples_table) / 0x08;
off_mult = 0x80;
/* check to distinguish it from SNR/SNS version (first streamed sample is always at 0x100) */
if (read_u16(tracks_data + 0x04, sf) == 0 && read_u32(samples_table + 0x00, sf) != 0x02)
/* check to distinguish it from SNR/SNS version (first streamed sample is always at 0x00 or 0x100) */
if (read_u16(tracks_data + 0x04, sf) == 0 && read_u32(samples_table + 0x00, sf) > 0x02)
goto fail;
track_start = total_streams;