src/codecs/timidity/readmidi.c
changeset 1083 7a3b49dbf90f
parent 1069 8d8ebc200fd4
child 1084 c7cedfb5f65f
equal deleted inserted replaced
1078:092f7e1f97b9 1083:7a3b49dbf90f
   535       {
   535       {
   536 	SNDDBG(("Not an RMID file!\n"));
   536 	SNDDBG(("Not an RMID file!\n"));
   537 	return NULL;
   537 	return NULL;
   538       }
   538       }
   539   }
   539   }
   540   len=SDL_SwapBE32(len);
   540   len=(Sint32)SDL_SwapBE32((Uint32)len);
   541   if (memcmp(tmp, "MThd", 4) || len < 6)
   541   if (memcmp(tmp, "MThd", 4) || len < 6)
   542     {
   542     {
   543       SNDDBG(("Not a MIDI file!\n"));
   543       SNDDBG(("Not a MIDI file!\n"));
   544       return NULL;
   544       return NULL;
   545     }
   545     }