summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--data/freedesktop.org.xml.in4
-rw-r--r--tests/mime-detection/list2
2 files changed, 5 insertions, 1 deletions
diff --git a/data/freedesktop.org.xml.in b/data/freedesktop.org.xml.in
index 8796aa52..934e2e5c 100644
--- a/data/freedesktop.org.xml.in
+++ b/data/freedesktop.org.xml.in
@@ -4145,7 +4145,9 @@ command to generate the output files.
<comment>DTSHD audio</comment>
<sub-class-of type="audio/vnd.dts"/>
<magic priority="60">
- <match type="big32" value="0x64582025" offset="0:18725"/> <!-- 16bits HD be -->
+ <match type="big32" value="0x7FFE8001" offset="0"> <!-- 16bits core be -->
+ <match type="big32" value="0x64582025" offset="4:18725"/> <!-- 16bits HD be -->
+ </match>
</magic>
<alias type="audio/x-dtshd"/>
<glob pattern="*.dtshd"/>
diff --git a/tests/mime-detection/list b/tests/mime-detection/list
index cca1a83f..2bb9df89 100644
--- a/tests/mime-detection/list
+++ b/tests/mime-detection/list
@@ -251,6 +251,8 @@ test.vsd application/vnd.visio ox
# Copied from https://bugs.freedesktop.org/show_bug.cgi?id=40800
test.dts audio/vnd.dts
test.dtshd audio/vnd.dts.hd
+# perl -e 'print "This is not DTSHD: \x{64}\x{58}\x{20}\x{25}"'
+test-not-dtshd.txt text/plain
# Copied from http://samples.mplayerhq.hu/A-codecs/amr/sample2.amr
sample2.amr audio/AMR
# Testing case-insensitive mime-type matching