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

CQTexperiment
Chris Moeller 2015-04-10 13:05:02 -07:00
parent 5d380c859c
commit e6b68486f1
1 changed files with 3 additions and 0 deletions

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;