Fixed a .JOE file with 0 dataInterleave, assuming 16 byte interleave for such files.

This commit is contained in:
Chris Moeller 2015-04-10 13:00:08 -07:00
parent 2ff56989b1
commit f6367fb0a8

View File

@ -37,6 +37,9 @@ VGMSTREAM * init_vgmstream_ps2_joe(STREAMFILE *streamFile) {
dataLength = read_32bitLE(0x4,streamFile);
dataInterleave = read_32bitLE(0x8,streamFile);
if (!dataInterleave)
dataInterleave = 16; /* XXX */
/* fill in the vital statistics */
start_offset = fileLength - dataLength;
vgmstream->channels = channel_count;