upload.rb: detect mp4s with an ftyp of avc1.

This commit is contained in:
evazion
2017-04-20 23:07:08 -05:00
parent 9718c6e107
commit 5f9c423542

View File

@@ -344,7 +344,7 @@ class Upload < ActiveRecord::Base
when /^\x1a\x45\xdf\xa3/n
"video/webm"
when /^....ftyp(?:isom|3gp5|mp42|MSNV)/
when /^....ftyp(?:isom|3gp5|mp42|MSNV|avc1)/
"video/mp4"
when /^PK\x03\x04/