mirror of
https://github.com/vgmstream/vgmstream.git
synced 2025-02-07 15:01:24 +01:00
fix some ongakukan .adp, part II
upped diff "beyond than" checks to 14 to allow some other adp file to actually work.
This commit is contained in:
parent
3145f7ebe4
commit
3fa266364e
@ -27,7 +27,7 @@ VGMSTREAM* init_vgmstream_adp_ongakukan(STREAMFILE* sf) {
|
|||||||
expected_size = (read_u32le(0x04, sf) - 0x24);
|
expected_size = (read_u32le(0x04, sf) - 0x24);
|
||||||
pcm_size = data_size * 2 * sizeof(short); // * channels
|
pcm_size = data_size * 2 * sizeof(short); // * channels
|
||||||
diff = expected_size - pcm_size;
|
diff = expected_size - pcm_size;
|
||||||
if (diff < 0 || diff > 2)
|
if (diff < 0 || diff > 14)
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
||||||
if (!is_id32be(0x08, sf, "WAVE"))
|
if (!is_id32be(0x08, sf, "WAVE"))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user