git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@3817
d7cf8633-e32d-0410-b094-
e92efae38249
+ // Don't try to load it if it's not a WAV file
+ if (memcmp (data, "RIFF", 4) || memcmp (data + 8, "WAVE", 4))
+ return NULL;
+
info = GetWavinfo (s->name, data, fs_filesize);
// Stereo sounds are allowed (intended for music)
if (info.channels < 1 || info.channels > 2)
info = GetWavinfo (s->name, data, fs_filesize);
// Stereo sounds are allowed (intended for music)
if (info.channels < 1 || info.channels > 2)