Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix crash after reading a MIDICustomMetaEvent with payload size > 127…
… bytes (#2892) * Fix crash after reading a MIDICustomMetaEvent with payload size > 127 byte. MetaEvents start with a byte with value FF, then a byte containing the meta event type, then a variable count of n bytes containing the encoded length of payload and finally the payload. The old assumes the value 1 instead of n for the count of bytes containing the length of payload. Changed code uses the count of bytes from vlqLength.length. * Fix comment spacing violation reported by hound bot --------- Co-authored-by: Matthias Bauer <[email protected]>
- Loading branch information