feat(#2): support mflac2/mgg2 ext

This commit is contained in:
鲁树人
2026-10-18 08:12:01 +09:00
parent 09622d01a7
commit 1028a1f2be
+2 -2
View File
@@ -276,8 +276,8 @@ func init() {
// New ogg/flac: // New ogg/flac:
extraExtsCanHaveSuffix := []string{"mgg", "mflac"} extraExtsCanHaveSuffix := []string{"mgg", "mflac"}
// Mac also adds some extra suffix to ext: // Mac/Android also adds some extra suffix to ext:
extraExtSuffix := []string{"0", "1", "a", "h", "l", "m"} extraExtSuffix := []string{"0", "1", "2", "a", "h", "l", "m"}
for _, ext := range extraExtsCanHaveSuffix { for _, ext := range extraExtsCanHaveSuffix {
common.RegisterDecoder(ext, false, NewDecoder) common.RegisterDecoder(ext, false, NewDecoder)
for _, suffix := range extraExtSuffix { for _, suffix := range extraExtSuffix {