Mark .mp2 and .mp3 as valid file-extensions

This commit is contained in:
Robin Gareus 2019-12-06 18:30:53 +01:00
parent c5e46ffd30
commit d73734af78
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04

View File

@ -331,6 +331,9 @@ AudioFileSource::safe_audio_file_extension(const string& file)
".vwe", ".VWE",
".w64", ".W64",
".wav", ".WAV",
/* minimp3 can read mp2, mp3 */
".mp2", ".MP2",
".mp3", ".MP3",
#ifdef HAVE_COREAUDIO
".aac", ".AAC",
".adts", ".ADTS",
@ -339,8 +342,6 @@ AudioFileSource::safe_audio_file_extension(const string& file)
".mpa", ".MPA",
".mpeg", ".MPEG",
".mp1", ".MP1",
".mp2", ".MP2",
".mp3", ".MP3",
".mp4", ".MP4",
".m4a", ".M4A",
".sd2", ".SD2", // libsndfile supports sd2 also, but the resource fork is required to open.