[libav-devel] [PATCH 1/5] FATE: add a test for the aac_adtstoasc bitstream filter

Anton Khirnov anton at khirnov.net
Tue Nov 26 10:21:46 CET 2013


---
 tests/Makefile                   |    1 +
 tests/fate/bsf.mak               |    5 +++++
 tests/ref/fate/bsf-aac_adtstoasc |   11 +++++++++++
 3 files changed, 17 insertions(+)
 create mode 100644 tests/fate/bsf.mak
 create mode 100644 tests/ref/fate/bsf-aac_adtstoasc

diff --git a/tests/Makefile b/tests/Makefile
index c861122..cfab1c1 100644
--- a/tests/Makefile
+++ b/tests/Makefile
@@ -66,6 +66,7 @@ include $(SRC_PATH)/tests/fate/amrwb.mak
 include $(SRC_PATH)/tests/fate/atrac.mak
 include $(SRC_PATH)/tests/fate/audio.mak
 include $(SRC_PATH)/tests/fate/bmp.mak
+include $(SRC_PATH)/tests/fate/bsf.mak
 include $(SRC_PATH)/tests/fate/cdxl.mak
 include $(SRC_PATH)/tests/fate/cover-art.mak
 include $(SRC_PATH)/tests/fate/demux.mak
diff --git a/tests/fate/bsf.mak b/tests/fate/bsf.mak
new file mode 100644
index 0000000..fd4121e
--- /dev/null
+++ b/tests/fate/bsf.mak
@@ -0,0 +1,5 @@
+FATE_BSF-$(call ALLYES,AAC_DEMUXER,AAC_ADTSTOASC_BSF) += fate-bsf-aac_adtstoasc
+fate-bsf-aac_adtstoasc: CMD = framecrc -i $(TARGET_SAMPLES)/aac/ct_faac-adts.aac -bsf aac_adtstoasc -c copy -frames 10
+
+FATE_SAMPLES_AVCONV += $(FATE_BSF-yes)
+fate-bsf: $(FATE_BSF-yes)
diff --git a/tests/ref/fate/bsf-aac_adtstoasc b/tests/ref/fate/bsf-aac_adtstoasc
new file mode 100644
index 0000000..9a250a8
--- /dev/null
+++ b/tests/ref/fate/bsf-aac_adtstoasc
@@ -0,0 +1,11 @@
+#tb 0: 1/28224000
+0,          0,          0,   655360,      433, 0x7665d812
+0,     655360,     655360,   655360,      400, 0x8e1bc5a4
+0,    1310720,    1310720,   655360,      398, 0x24ddc09a
+0,    1966080,    1966080,   655360,      389, 0xd266bcb3
+0,    2621440,    2621440,   655360,      430, 0xc702cadb
+0,    3276800,    3276800,   655360,      369, 0xb3b0bc48
+0,    3932160,    3932160,   655360,      364, 0xedc4b397
+0,    4587520,    4587520,   655360,      374, 0x1402c0e6
+0,    5242880,    5242880,   655360,      405, 0x40a0ce9b
+0,    5898240,    5898240,   655360,      426, 0xcecbd625
-- 
1.7.10.4



More information about the libav-devel mailing list