KTSS fixes

This commit is contained in:
bxaimc 2019-03-21 19:07:33 -04:00
parent a24f1c0337
commit e6208351d4

View File

@ -15,7 +15,7 @@ VGMSTREAM * init_vgmstream_ktss(STREAMFILE *streamFile) {
if (read_32bitBE(0, streamFile) != 0x4B545353) /* "KTSS" */
goto fail;
codec_id = read_32bitLE(0x20, streamFile);
codec_id = read_8bit(0x20, streamFile);
loop_length = read_32bitLE(0x38, streamFile);
loop_flag = loop_length > 0;
@ -75,6 +75,10 @@ VGMSTREAM * init_vgmstream_ktss(STREAMFILE *streamFile) {
}
}
break;
case default:
goto fail;
break;
#endif
}