FATE: add a test for the lavr mixing case fixed in fc6a3ef40d34ce8443ae57c2452f3f273d...
authorAnton Khirnov <anton@khirnov.net>
Mon, 16 Dec 2013 20:30:39 +0000 (21:30 +0100)
committerAnton Khirnov <anton@khirnov.net>
Fri, 3 Jan 2014 15:44:03 +0000 (16:44 +0100)
tests/fate/libavresample.mak
tests/filtergraphs/lavr_mix_output_zero [new file with mode: 0644]

index 6ae2ddcac60d9d056bc624cc8cabb4ed17fc9c47..543a499297406ea46c243b0412ae1e252abe4042 100644 (file)
@@ -18,6 +18,13 @@ $(call CROSS_TEST,$(MIX_CHANNELS),MIX,q8,s16p)
 $(call CROSS_TEST,$(MIX_CHANNELS),MIX,q15,s16p)
 $(call CROSS_TEST,$(MIX_CHANNELS),MIX,flt,fltp)
 
+# test output zeroing with skipped corresponding input
+FATE_LAVR_MIX-$(call FILTERDEMDECENCMUX, CHANNELMAP RESAMPLE, WAV, PCM_S16LE, PCM_S16LE, WAV) += fate-lavr-mix-output-zero
+fate-lavr-mix-output-zero: tests/data/filtergraphs/lavr_mix_output_zero tests/data/asynth-44100-4.wav
+fate-lavr-mix-output-zero: CMP = oneoff
+fate-lavr-mix-output-zero: CMD = avconv -i $(TARGET_PATH)/tests/data/asynth-44100-4.wav -filter_script $(TARGET_PATH)/tests/data/filtergraphs/lavr_mix_output_zero -f s16le -
+fate-lavr-mix-output-zero: REF = $(SAMPLES)/lavr/lavr-mix-output-zero
+
 FATE_LAVR_MIX-$(call FILTERDEMDECENCMUX, RESAMPLE, WAV, PCM_S16LE, PCM_S16LE, WAV) += $(FATE_LAVR_MIX)
 fate-lavr-mix: $(FATE_LAVR_MIX-yes)
 FATE_LAVR += $(FATE_LAVR_MIX-yes)
diff --git a/tests/filtergraphs/lavr_mix_output_zero b/tests/filtergraphs/lavr_mix_output_zero
new file mode 100644 (file)
index 0000000..b745f17
--- /dev/null
@@ -0,0 +1 @@
+atrim=end_sample=1024,channelmap=channel_layout=FL|FR|LFE|BC,aformat=channel_layouts=3.0