summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorJanne Grunau <janne-libav@jannau.net>2014-12-08 16:21:43 +0100
committerJanne Grunau <janne-libav@jannau.net>2014-12-09 22:00:08 +0100
commitd2f1d42b18787e4fcb28864d9d9f701dd64a5747 (patch)
tree40aad936bcbe7631977d9d31a037190ab3203190 /tests
parent4c81613df499ba81d64ea102b38d0c6686cc304c (diff)
fate: add dolby true hd tests
The existing meridian audio test does not test ff_mlp_rematrix_channel_arm. This sample (first 640k of https://samples.libav.org/A-codecs/TrueHD/TrueHD.raw) uses ff_mlp_rematrix_channel_arm. Since this sample has 5.1 channels it also allows testing the integrated downmixing.
Diffstat (limited to 'tests')
-rw-r--r--tests/fate/lossless-audio.mak6
-rw-r--r--tests/ref/fate/lossless-truehd-5.11
-rw-r--r--tests/ref/fate/lossless-truehd-5.1-downmix-2.01
3 files changed, 8 insertions, 0 deletions
diff --git a/tests/fate/lossless-audio.mak b/tests/fate/lossless-audio.mak
index 3638f17c27..751c7210e8 100644
--- a/tests/fate/lossless-audio.mak
+++ b/tests/fate/lossless-audio.mak
@@ -15,6 +15,12 @@ fate-lossless-tak: CMD = md5 -i $(TARGET_SAMPLES)/lossless-audio/luckynight-part
fate-lossless-tak: CMP = oneline
fate-lossless-tak: REF = a28d4e5f2192057f7d4bece870f40bd0
+FATE_TRUEHD = fate-lossless-truehd-5.1 fate-lossless-truehd-5.1-downmix-2.0
+fate-lossless-truehd-5.1: CMD = md5 -f truehd -i $(TARGET_SAMPLES)/lossless-audio/truehd_5.1.raw -f s32le
+fate-lossless-truehd-5.1-downmix-2.0: CMD = md5 -f truehd -request_channel_layout 2 -i $(TARGET_SAMPLES)/lossless-audio/truehd_5.1.raw -f s32le
+fate-lossless-truehd: $(FATE_TRUEHD)
+FATE_SAMPLES_AVCONV-$(call DEMDEC, TRUEHD, TRUEHD) += $(FATE_TRUEHD)
+
FATE_SAMPLES_AVCONV-$(call DEMDEC, TTA, TTA) += fate-lossless-tta
fate-lossless-tta: CMD = crc -i $(TARGET_SAMPLES)/lossless-audio/inside.tta
diff --git a/tests/ref/fate/lossless-truehd-5.1 b/tests/ref/fate/lossless-truehd-5.1
new file mode 100644
index 0000000000..373b917948
--- /dev/null
+++ b/tests/ref/fate/lossless-truehd-5.1
@@ -0,0 +1 @@
+95d8aac39dd9f0d7fb83dc7b6f88df35
diff --git a/tests/ref/fate/lossless-truehd-5.1-downmix-2.0 b/tests/ref/fate/lossless-truehd-5.1-downmix-2.0
new file mode 100644
index 0000000000..f4afbc19b8
--- /dev/null
+++ b/tests/ref/fate/lossless-truehd-5.1-downmix-2.0
@@ -0,0 +1 @@
+a269aee0051d4400c9117136f08c9767