mirror of
https://github.com/vgmstream/vgmstream.git
synced 2024-11-15 02:57:38 +01:00
XMA: Added missing header magic check
This commit is contained in:
parent
fb70b177e2
commit
0273739cfe
@ -19,6 +19,10 @@ VGMSTREAM * init_vgmstream_xma(STREAMFILE *streamFile) {
|
||||
if ( !check_extensions(streamFile, "xma,xma2,nps,str") )
|
||||
goto fail;
|
||||
|
||||
/* check header */
|
||||
if (read_32bitBE(0x00, streamFile) != 0x52494646) /* "RIFF" */
|
||||
goto fail;
|
||||
|
||||
{
|
||||
size_t file_size = streamFile->get_size(streamFile);
|
||||
size_t riff_size = read_32bitLE(0x04,streamFile);
|
||||
|
Loading…
Reference in New Issue
Block a user