Merge pull request #2984 from evazion/fix-mp4-avc1

Support mp4s of ftyp "avc1"
This commit is contained in:
Albert Yi
2017-04-22 01:04:11 -07:00
committed by GitHub

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/