From 5f9c4235426e6b4a8d8f90f49d5995e3c7b69dbe Mon Sep 17 00:00:00 2001 From: evazion Date: Thu, 20 Apr 2017 23:07:08 -0500 Subject: [PATCH] upload.rb: detect mp4s with an ftyp of avc1. --- app/models/upload.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/upload.rb b/app/models/upload.rb index 72e950a90..bcf4e1672 100644 --- a/app/models/upload.rb +++ b/app/models/upload.rb @@ -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/