fix waa header check

git-svn-id: https://vgmstream.svn.sourceforge.net/svnroot/vgmstream@488 51a99a44-fe44-0410-b1ba-c3e57ba2b86b
This commit is contained in:
halleyscometsw 2008-11-23 12:44:23 +00:00
parent 86de1e3af7
commit e7ca2efac2

View File

@ -21,7 +21,7 @@ VGMSTREAM * init_vgmstream_waa_wac_wad_wam(STREAMFILE *streamFile) {
/* check header */
if (read_32bitBE(0x00,streamFile) != 0x52494646 || /* "RIFF" */
read_32bitBE(0x08,streamFile) != 0x57415645 || /* "WAVE" */
read_32bitBE(0xCC,streamFile) != 0x666D7420 || /* "fmt\0x20" */
read_32bitBE(0x0C,streamFile) != 0x666D7420 || /* "fmt\0x20" */
read_32bitBE(0x10,streamFile) != 0x12000000 || /* "0x12000000" */
read_16bitBE(0x14,streamFile) != (int16_t)0xFEFF) /* "FEFF" */
goto fail;