Skip to content

Commit

Permalink
Merge branch 'release/2.3' into master
Browse files Browse the repository at this point in the history
  • Loading branch information
derselbst committed Aug 31, 2024
2 parents 2e60f94 + 932f0b5 commit 7f39048
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/midi/fluid_midi.c
Original file line number Diff line number Diff line change
Expand Up @@ -357,6 +357,12 @@ fluid_midi_file_read_mthd(fluid_midi_file *mf)
}

mf->type = mthd[9];
if(!(mf->type == 0 || mf->type == 1))
{
FLUID_LOG(FLUID_ERR,
"Sorry, but MIDI Format %d is not supported by this player", mf->type);
return FLUID_FAILED;
}
mf->ntracks = (unsigned) mthd[11];
mf->ntracks += (unsigned int)(mthd[10]) << 16;

Expand Down

0 comments on commit 7f39048

Please sign in to comment.