Do not try to parse aac files with TagLib 1.x

This commit is contained in:
emeric
2025-11-16 11:22:49 +01:00
parent ab898b697c
commit 9cadf0e1fa
+27 -4
View File
@@ -54,12 +54,35 @@ namespace lms::audio::taglib::utils
std::span<const std::filesystem::path> getSupportedExtensions() std::span<const std::filesystem::path> getSupportedExtensions()
{ {
static const std::vector<std::filesystem::path> supportedExtensions{ static const std::vector<std::filesystem::path> supportedExtensions{
".mp3", ".mp2", ".aac", ".ogg", ".oga", ".flac", ".spx", ".opus", ".mp3",
".mpc", ".wv", ".ape", ".tta", ".m4a", ".m4r", ".m4b", ".m4p", ".mp2",
".3g2", ".m4v", ".wma", ".asf", ".aif", ".aiff", ".afc", ".aifc", ".ogg",
".oga",
".flac",
".spx",
".opus",
".mpc",
".wv",
".ape",
".tta",
".m4a",
".m4r",
".m4b",
".m4p",
".3g2",
".m4v",
".wma",
".asf",
".aif",
".aiff",
".afc",
".aifc",
".wav", ".wav",
#if LMS_TAGLIB_HAS_ADTS
".aac",
#endif
#if LMS_TAGLIB_HAS_DSF #if LMS_TAGLIB_HAS_DSF
".dsf" ".dsf",
#endif #endif
}; };