OSDN Git Service

fate: add dolby true hd tests
authorJanne Grunau <janne-libav@jannau.net>
Mon, 8 Dec 2014 15:21:43 +0000 (16:21 +0100)
committerJanne Grunau <janne-libav@jannau.net>
Tue, 9 Dec 2014 21:00:08 +0000 (22:00 +0100)
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.

tests/fate/lossless-audio.mak
tests/ref/fate/lossless-truehd-5.1 [new file with mode: 0644]
tests/ref/fate/lossless-truehd-5.1-downmix-2.0 [new file with mode: 0644]

index 3638f17..751c721 100644 (file)
@@ -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 (file)
index 0000000..373b917
--- /dev/null
@@ -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 (file)
index 0000000..f4afbc1
--- /dev/null
@@ -0,0 +1 @@
+a269aee0051d4400c9117136f08c9767