From a89983b3c5b5e1024090b66f24b142e1138df2ce Mon Sep 17 00:00:00 2001 From: Wohlstand Date: Tue, 24 Oct 2017 18:53:35 +0300 Subject: Fixed IMF playing! --- src/adlmidi_midiplay.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/adlmidi_midiplay.cpp') diff --git a/src/adlmidi_midiplay.cpp b/src/adlmidi_midiplay.cpp index c3ed2a5..8742b3d 100644 --- a/src/adlmidi_midiplay.cpp +++ b/src/adlmidi_midiplay.cpp @@ -201,6 +201,11 @@ void MIDIplay::buildTrackData() //Tempo change events std::vector tempos; + /* + * TODO: Make this be safer for memory in case of broken input data + * which may cause going away of available track data (and then give a crash!) + */ + for(size_t tk = 0; tk < trackCount; ++tk) { uint64_t abs_position = 0; -- cgit v1.2.3