mirror of
https://github.com/vgmstream/vgmstream.git
synced 2025-01-17 23:36:41 +01:00
Modified a header check to reduce some -pickiness- which rejected some playable EALayer3 files
This commit is contained in:
parent
7f389157d1
commit
a8369ed21b
@ -48,8 +48,9 @@ VGMSTREAM * init_vgmstream_ea_sps(STREAMFILE * streamFile) {
|
||||
if (!check_extensions(streamFile,"sps"))
|
||||
goto fail;
|
||||
|
||||
/* seems to be fixed */
|
||||
if ((read_32bitBE(0x00,streamFile) & 0xFFFFFF00) != 0x48000000)
|
||||
/* Very hacky but the original check for 0x48000000 rejected some playable files */
|
||||
if (((read_16bitBE(0x00,streamFile) & 0xFFFFFF00) != 0x4800) &&
|
||||
((read_8bit(0x00, streamFile) & 0xFFFFFF00) != 0x00))
|
||||
goto fail;
|
||||
|
||||
start_offset = read_8bit(0x03, streamFile);
|
||||
|
Loading…
x
Reference in New Issue
Block a user