summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam Hooper <adam@adamhooper.com>2019-02-12 15:22:51 -0500
committerAdam Hooper <adam@adamhooper.com>2019-02-13 15:47:10 -0500
commit65df81f8c3f5a5ca0ca8415fdcb49d586350e47b (patch)
treeffa6ca06539c665644b13ebd40317f7a91b59c70
parentf80e619fe6c14e1c45295a06b0d3c7448568b16f (diff)
downloadshared-mime-info-65df81f8c3f5a5ca0ca8415fdcb49d586350e47b.tar.gz
video/mp4: recognize mpeg4 v1 video
-rw-r--r--freedesktop.org.xml.in1
-rw-r--r--tests/list5
-rw-r--r--tests/mp4v1-video-headerbin0 -> 1000 bytes
-rw-r--r--tests/mp4v2-video-headerbin0 -> 1000 bytes
4 files changed, 5 insertions, 1 deletions
diff --git a/freedesktop.org.xml.in b/freedesktop.org.xml.in
index 1e8b8d07..ede984c6 100644
--- a/freedesktop.org.xml.in
+++ b/freedesktop.org.xml.in
@@ -4225,6 +4225,7 @@ command to generate the output files.
<alias type="video/mp4v-es"/>
<magic priority="50">
<match type="string" value="ftypisom" offset="4"/>
+ <match type="string" value="ftypmp41" offset="4"/>
<match type="string" value="ftypmp42" offset="4"/>
<match type="string" value="ftypMSNV" offset="4"/>
<match type="string" value="ftypM4V " offset="4"/>
diff --git a/tests/list b/tests/list
index 0ea287ee..fd426a55 100644
--- a/tests/list
+++ b/tests/list
@@ -9,7 +9,7 @@
# Images
-test.bmp image/bmp
+test.bmp image/bmp
test.cel image/x-cel xxx
test.dcm application/dicom
test.eps image/x-eps
@@ -492,6 +492,9 @@ simon.669 audio/x-mod
# Copied from https://github.com/inAudible-NG/audible-samples
test.aa audio/x-pn-audibleaudio
test.aax audio/x-pn-audibleaudio
+# MPEG-4 files
+mp4v1-video-header video/mp4
+mp4v2-video-header video/mp4
# Disk and CD/DVD images
iso-file.iso application/x-cd-image oxo
diff --git a/tests/mp4v1-video-header b/tests/mp4v1-video-header
new file mode 100644
index 00000000..10099087
--- /dev/null
+++ b/tests/mp4v1-video-header
Binary files differ
diff --git a/tests/mp4v2-video-header b/tests/mp4v2-video-header
new file mode 100644
index 00000000..4e17a9b1
--- /dev/null
+++ b/tests/mp4v2-video-header
Binary files differ