backport fix for bugs 1905, 2140. SDL-1.2
authorOzkan Sezer <sezeroz@gmail.com>
Sun, 07 Oct 2018 00:15:15 +0300
branchSDL-1.2
changeset 872854ab2f1b51c
parent 871 284d10d87cc9
child 873 d159f97ef3e7
backport fix for bugs 1905, 2140.

(from 2.0 branch commit 0ff9b7b8ba7b, 8ef083375857).
timidity/readmidi.c
     1.1 --- a/timidity/readmidi.c	Sun Oct 07 00:08:00 2018 +0300
     1.2 +++ b/timidity/readmidi.c	Sun Oct 07 00:15:15 2018 +0300
     1.3 @@ -679,6 +679,8 @@
     1.4  	  compute_sample_increment(tempo, divisions);
     1.5  	  skip_this_event=1;
     1.6  	}
     1.7 +      else if (meep->event.channel >= MAXCHAN)
     1.8 +	skip_this_event=1;
     1.9        else if ((quietchannels & (1<<meep->event.channel)))
    1.10  	skip_this_event=1;
    1.11        else switch (meep->event.type)