mirror of
https://github.com/vgmstream/vgmstream.git
synced 2025-01-17 23:36:41 +01:00
Sign extension bad! Fixed BFSTM format support.
This commit is contained in:
parent
ea5a4290a7
commit
6e4abd55e3
@ -27,7 +27,7 @@ VGMSTREAM * init_vgmstream_bfstm(STREAMFILE *streamFile) {
|
||||
/* check header */
|
||||
if ((uint32_t)read_32bitBE(0, streamFile) != 0x4653544D) /* "FSTM" */
|
||||
goto fail;
|
||||
if ((uint32_t)read_16bitBE(4, streamFile) != 0xFEFF)
|
||||
if ((uint16_t)read_16bitBE(4, streamFile) != 0xFEFF)
|
||||
goto fail;
|
||||
|
||||
founddata = 0;
|
||||
|
Loading…
x
Reference in New Issue
Block a user