mirror of
https://github.com/vgmstream/vgmstream.git
synced 2024-09-24 19:28:24 +02:00
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:
parent
b7c1e568d5
commit
cf288cd46d
@ -612,6 +612,9 @@ VGMSTREAM * init_vgmstream_sadb(STREAMFILE *streamFile) {
|
||||
if (read_dsp_header(&ch0_header, 0x80, 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);
|
||||
interleave = 16;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user