another sadb header check

git-svn-id: https://vgmstream.svn.sourceforge.net/svnroot/vgmstream@241 51a99a44-fe44-0410-b1ba-c3e57ba2b86b
This commit is contained in:
halleyscometsw 2008-06-15 09:29:55 +00:00
parent b7c1e568d5
commit cf288cd46d

View File

@ -612,6 +612,9 @@ VGMSTREAM * init_vgmstream_sadb(STREAMFILE *streamFile) {
if (read_dsp_header(&ch0_header, 0x80, streamFile)) goto fail; if (read_dsp_header(&ch0_header, 0x80, streamFile)) goto fail;
if (read_dsp_header(&ch1_header, 0xe0, streamFile)) goto fail; if (read_dsp_header(&ch1_header, 0xe0, streamFile)) goto fail;
/* check header magic */
if (read_32bitBE(0x0,streamFile) != 0x73616462) goto fail; /* "sadb" */
start_offset = read_32bitBE(0x48,streamFile); start_offset = read_32bitBE(0x48,streamFile);
interleave = 16; interleave = 16;