---
 tests/Makefile               |    1 +
 tests/fate/libavresample.mak |   23 +++++++++++++++++++++++
 2 files changed, 24 insertions(+)
 create mode 100644 tests/fate/libavresample.mak

diff --git a/tests/Makefile b/tests/Makefile
index 132a1a7..5eb7ffd 100644
--- a/tests/Makefile
+++ b/tests/Makefile
@@ -82,6 +82,7 @@ include $(SRC_PATH)/tests/fate/indeo.mak
 include $(SRC_PATH)/tests/fate/libavcodec.mak
 include $(SRC_PATH)/tests/fate/libavdevice.mak
 include $(SRC_PATH)/tests/fate/libavformat.mak
+include $(SRC_PATH)/tests/fate/libavresample.mak
 include $(SRC_PATH)/tests/fate/libavutil.mak
 include $(SRC_PATH)/tests/fate/lossless-audio.mak
 include $(SRC_PATH)/tests/fate/lossless-video.mak
diff --git a/tests/fate/libavresample.mak b/tests/fate/libavresample.mak
new file mode 100644
index 0000000..bae547b
--- /dev/null
+++ b/tests/fate/libavresample.mak
@@ -0,0 +1,23 @@
+MIX_CHANNELS = 1 2 3 4 5 6 7 8
+
+define MIX
+FATE_LAVR_MIX += fate-lavr-mix-$(3)-$(1)-$(2)
+fate-lavr-mix-$(3)-$(1)-$(2): tests/data/asynth-44100-$(1).wav
+fate-lavr-mix-$(3)-$(1)-$(2): CMD = avconv -i 
$(TARGET_PATH)/tests/data/asynth-44100-$(1).wav -ac $(2) -mix_coeff_type $(3) 
-internal_sample_fmt $(4) -f s16le -af atrim=end_sample=1024 -
+fate-lavr-mix-$(3)-$(1)-$(2): CMP = oneoff
+fate-lavr-mix-$(3)-$(1)-$(2): REF = $(SAMPLES)/lavr/lavr-mix-$(3)-$(1)-$(2)
+endef
+
+define MIX_FMT
+$(foreach I,$(MIX_CHANNELS),$(foreach J,$(MIX_CHANNELS),$(if $(filter-out 
$(I),$(J)),$(eval $(call MIX,$(I),$(J),$(1),$(2))),)))
+endef
+
+$(eval $(call MIX_FMT,q8,s16p))
+$(eval $(call MIX_FMT,q15,s16p))
+$(eval $(call MIX_FMT,flt,fltp))
+
+FATE_LAVR-$(call FILTERDEMDECENCMUX, RESAMPLE, WAV, PCM_S16LE, PCM_S16LE, WAV) 
+= $(FATE_LAVR_MIX)
+fate-lavr-mix: $(FATE_LAVR_MIX)
+
+FATE_SAMPLES_AVCONV += $(FATE_LAVR-yes)
+fate-lavr: $(FATE_LAVR-yes)
-- 
1.7.10.4

_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to