upload.ex: add MPEG Layer 3 file header.
authoreal <eal@waifu.club>
Thu, 14 Jun 2018 13:41:08 +0000 (16:41 +0300)
committereal <eal@waifu.club>
Thu, 14 Jun 2018 13:41:08 +0000 (16:41 +0300)
lib/pleroma/upload.ex

index ab4bd16f02dc19384f09c97a727de404d143080b..c7f11f3803666c2a21503963ec0a4b54b0b6bf70 100644 (file)
@@ -151,6 +151,9 @@ defmodule Pleroma.Upload do
           <<0x49, 0x44, 0x33, _, _, _, _, _>> ->
             "audio/mpeg"
 
+          <<255, 251, _, 68, 0, 0, 0, 0>> ->
+            "audio/mpeg"
+
           <<0x4F, 0x67, 0x67, 0x53, 0x00, 0x02, 0x00, 0x00>> ->
             "audio/ogg"