projects
/
akkoma
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
678df59
)
upload.ex: add MPEG Layer 3 file header.
author
eal
<eal@waifu.club>
Thu, 14 Jun 2018 13:41:08 +0000
(16:41 +0300)
committer
eal
<eal@waifu.club>
Thu, 14 Jun 2018 13:41:08 +0000
(16:41 +0300)
lib/pleroma/upload.ex
patch
|
blob
|
history
diff --git
a/lib/pleroma/upload.ex
b/lib/pleroma/upload.ex
index ab4bd16f02dc19384f09c97a727de404d143080b..c7f11f3803666c2a21503963ec0a4b54b0b6bf70 100644
(file)
--- 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"