Update xvag.c

This commit is contained in:
Shawn Presser 2018-06-28 15:30:33 -05:00 committed by GitHub
parent e91703fe6a
commit a700fda10d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -18,6 +18,10 @@ VGMSTREAM * init_vgmstream_xvag(STREAMFILE *streamFile) {
off_t first_offset = 0x20; off_t first_offset = 0x20;
size_t chunk_size, stream_size; size_t chunk_size, stream_size;
/* check extension, case insensitive */
if (!check_extensions(streamFile,"xvag,"))
goto fail;
/* check header */ /* check header */
if (read_32bitBE(0x00,streamFile) != 0x58564147) /* "XVAG" */ if (read_32bitBE(0x00,streamFile) != 0x58564147) /* "XVAG" */
goto fail; goto fail;