Merge pull request #2984 from evazion/fix-mp4-avc1
Support mp4s of ftyp "avc1"
This commit is contained in:
@@ -344,7 +344,7 @@ class Upload < ActiveRecord::Base
|
|||||||
when /^\x1a\x45\xdf\xa3/n
|
when /^\x1a\x45\xdf\xa3/n
|
||||||
"video/webm"
|
"video/webm"
|
||||||
|
|
||||||
when /^....ftyp(?:isom|3gp5|mp42|MSNV)/
|
when /^....ftyp(?:isom|3gp5|mp42|MSNV|avc1)/
|
||||||
"video/mp4"
|
"video/mp4"
|
||||||
|
|
||||||
when /^PK\x03\x04/
|
when /^PK\x03\x04/
|
||||||
|
|||||||
Reference in New Issue
Block a user