This commit is contained in:
Joseph Gibbs 2015-07-07 15:54:23 -07:00
parent 50bf81d269
commit 9600e5f7d1

View File

@ -25,7 +25,7 @@ VGMSTREAM * init_vgmstream_bcstm(STREAMFILE *streamFile) {
/* check header */
if ((uint32_t)read_32bitBE(0, streamFile) != 0x4353544D) /* "CSTM" */
goto fail;
if ((uint32_t)read_16bitLE(4, streamFile) != 0xFEFF)
if ((uint16_t)read_16bitLE(4, streamFile) != 0xFEFF)
goto fail;
int section_count = read_16bitLE(0x10, streamFile);