mirror of
https://github.com/vgmstream/vgmstream.git
synced 2025-01-17 23:36:41 +01:00
Fix truncated MULs
This commit is contained in:
parent
c9d997f355
commit
54cf775dca
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user