Brian Wolff has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/79809


Change subject: Add MP4 to mime.types
......................................................................

Add MP4 to mime.types

Its a popular video format, we should recognize its type.

This will also prevent people from uploading mp4's to commons.

Wikipedia claims m4a sometimes used for video content.
RFC 4337 says audio/mp4 is mime type for mp4 with no
video (which is usually what an m4a extension means).

Bug: 52990
Change-Id: I5c24c3e318651241cced5b36d107d3603a289427
---
M includes/mime.info
M includes/mime.types
2 files changed, 4 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/core 
refs/changes/09/79809/1

diff --git a/includes/mime.info b/includes/mime.info
index f7576e4..a4e8b64 100644
--- a/includes/mime.info
+++ b/includes/mime.info
@@ -30,6 +30,7 @@
 
 
 audio/mpeg audio/mp3 audio/mpeg3       [AUDIO]
+audio/mp4                              [AUDIO]
 audio/wav audio/x-wav audio/wave       [AUDIO]
 audio/midi audio/mid   [AUDIO]
 audio/basic            [AUDIO]
@@ -46,6 +47,7 @@
 video/x-flv                    [VIDEO]
 video/webm                     [VIDEO]
 video/x-matroska               [VIDEO]
+video/mp4                      [VIDEO]
 
 application/ogg application/x-ogg audio/ogg audio/x-ogg video/ogg video/x-ogg  
        [MULTIMEDIA]
 
diff --git a/includes/mime.types b/includes/mime.types
index a89d229..378f274 100644
--- a/includes/mime.types
+++ b/includes/mime.types
@@ -118,6 +118,8 @@
 text/x-setext etx
 text/x-sawfish jl
 video/mpeg mpeg mpg mpe
+video/mp4 mp4 m4a m4p m4b m4r m4v
+audio/mp4 m4a
 video/ogg ogv ogm ogg
 video/quicktime qt mov
 video/vnd.mpegurl mxu

-- 
To view, visit https://gerrit.wikimedia.org/r/79809
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I5c24c3e318651241cced5b36d107d3603a289427
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/core
Gerrit-Branch: master
Gerrit-Owner: Brian Wolff <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to