fix incorrect test for textual meta events in libsmf
This commit is contained in:
parent
54ef5fadc2
commit
ff6f8ca6c4
@ -661,8 +661,9 @@ smf_event_is_textual(const smf_event_t *event)
|
||||
return (0);
|
||||
}
|
||||
|
||||
if (event->midi_buffer[3] < 1 || event->midi_buffer[3] > 9)
|
||||
if (event->midi_buffer[1] < 1 || event->midi_buffer[1] > 7) {
|
||||
return (0);
|
||||
}
|
||||
|
||||
return (1);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user