Skip to content

Commit

Permalink
Mix_LoadMUS() now explicitly checks for an "MP3" file extension inste…
Browse files Browse the repository at this point in the history
…ad of

 relying on the magic number.
  • Loading branch information
icculus committed Jun 26, 2002
1 parent d9e8217 commit a6d9a53
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions music.c
Expand Up @@ -472,6 +472,7 @@ Mix_Music *Mix_LoadMUS(const char *file)
#endif
#ifdef MP3_MUSIC
if ( (ext && MIX_string_equals(ext, "MPG")) ||
(ext && MIX_string_equals(ext, "MP3")) ||
(ext && MIX_string_equals(ext, "MPEG")) ||
magic[0]==0xFF && (magic[1]&0xF0)==0xF0) {
SMPEG_Info info;
Expand Down

0 comments on commit a6d9a53

Please sign in to comment.