mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-21 03:31:40 +00:00
AUDIO: Ignore optional RBRN chunks in XMIDI files
This commit is contained in:
parent
7cfa7775e5
commit
1e2caf872b
@ -372,6 +372,12 @@ bool MidiParser_XMIDI::loadMusic(byte *data, uint32 size) {
|
||||
len = read4high(pos);
|
||||
pos += (len + 1) & ~1;
|
||||
++tracksRead;
|
||||
} else if (!memcmp(pos, "RBRN", 4)) {
|
||||
// optional branch point offsets. Ignored
|
||||
pos += 4;
|
||||
len = read4high(pos);
|
||||
pos += (len + 1) & ~1;
|
||||
|
||||
} else {
|
||||
warning("Hit invalid block '%c%c%c%c' while scanning for track locations", pos[0], pos[1], pos[2], pos[3]);
|
||||
return false;
|
||||
|
Loading…
x
Reference in New Issue
Block a user