Fix truncated MULs

This commit is contained in:
bnnm 2019-02-09 23:39:03 +01:00
parent c9d997f355
commit 54cf775dca

View File

@ -28,10 +28,14 @@ void block_update_mul(off_t block_offset, VGMSTREAM * vgmstream) {
data_header = 0x00;
data_size = 0;
}
if (block_type == 0x00 && block_size != 0) {
else if (block_type == 0x00 && block_size != 0) {
/* read audio sub-header */
data_size = read_32bit(block_offset + block_header + 0x00,streamFile);
}
else if (block_type < 0) {
/* EOF/bad read */
data_size = -1;
}
else {
/* non-audio or empty audio block */
data_header = 0x00;