summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarton Balint <[email protected]>2025-06-24 20:57:10 +0200
committerMarton Balint <[email protected]>2025-07-03 21:41:54 +0200
commiteea6f0e32e195f9ee851266e569b8a2fa9914ef1 (patch)
treea0e918b9e1f8545295f0dde734373376ee126060
parent44546751db824002f07cc0b8b2fc62587a5a34b5 (diff)
tests/fate/filter-audio: add anullsink test
Tests ticket #11624 with a slight modification. Signed-off-by: Marton Balint <[email protected]>
-rw-r--r--tests/fate/filter-audio.mak3
-rw-r--r--tests/ref/fate/filter-anullsink6
2 files changed, 9 insertions, 0 deletions
diff --git a/tests/fate/filter-audio.mak b/tests/fate/filter-audio.mak
index 343fa40e9d..129122f408 100644
--- a/tests/fate/filter-audio.mak
+++ b/tests/fate/filter-audio.mak
@@ -421,6 +421,9 @@ fate-filter-atempo: REF = $(SAMPLES)/filter-reference/atempo.pcm
fate-filter-aloop: CMD = framecrc -filter_complex "sine=r=48000:f=480:d=4,aloop=loop=4:start=48000:size=48000,asetnsamples=9600"
FATE_AFILTER-$(call ALLYES, SINE_FILTER ALOOP_FILTER ASETNSAMPLES_FILTER PCM_S16LE_ENCODER FRAMECRC_MUXER PIPE_PROTOCOL) += fate-filter-aloop
+fate-filter-anullsink: CMD = framecrc -f lavfi -i "sine=d=1" -af "aresample=22050,asplit[a][b];[a]anullsink;[b]atrim=end_sample=256"
+FATE_AFILTER-$(call ALLYES, LAVFI_INDEV SINE_FILTER ARESAMPLE_FILTER ASPLIT_FILTER ANULLSINK_FILTER ATRIM_FILTER PCM_S16LE_ENCODER FRAMECRC_MUXER PIPE_PROTOCOL) += fate-filter-anullsink
+
fate-filter-crazychannels: tests/data/filtergraphs/crazychannels
fate-filter-crazychannels: CMD = framecrc -auto_conversion_filters -/filter_complex $(TARGET_PATH)/tests/data/filtergraphs/crazychannels
FATE_AFILTER-$(call FILTERFRAMECRC, ARESAMPLE SINE JOIN ATRIM CHANNELMAP CHANNELSPLIT) += fate-filter-crazychannels
diff --git a/tests/ref/fate/filter-anullsink b/tests/ref/fate/filter-anullsink
new file mode 100644
index 0000000000..f480a2fefc
--- /dev/null
+++ b/tests/ref/fate/filter-anullsink
@@ -0,0 +1,6 @@
+#tb 0: 1/22050
+#media_type 0: audio
+#codec_id 0: pcm_s16le
+#sample_rate 0: 22050
+#channel_layout_name 0: mono
+0, 0, 0, 256, 512, 0x270ff949