From: eal Date: Thu, 14 Jun 2018 13:41:08 +0000 (+0300) Subject: upload.ex: add MPEG Layer 3 file header. X-Git-Url: https://git.squeep.com/?a=commitdiff_plain;h=12c7a023decac20ca563c25faa4031c1b3cc56ca;p=akkoma upload.ex: add MPEG Layer 3 file header. --- diff --git a/lib/pleroma/upload.ex b/lib/pleroma/upload.ex index ab4bd16f0..c7f11f380 100644 --- a/lib/pleroma/upload.ex +++ b/lib/pleroma/upload.ex @@ -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"