aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorMark Thompson <sw@jkqxz.net>2018-05-07 23:55:20 +0100
committerMark Thompson <sw@jkqxz.net>2018-05-10 23:54:02 +0100
commitf995aa82d85810e37432fbf49342921c703a4e8d (patch)
tree557becf85a9bacb50391b5f1288f3b8f4c9e923f /tests
parentac687add84a1a87b0b9460c3cdbbeb9bac02fb34 (diff)
downloadffmpeg-f995aa82d85810e37432fbf49342921c703a4e8d.tar.gz
fate/cbs: Add an SEI test
The artificial sample file sei-1.h264 contains five frames (IDR P B I B) and the following SEI message types: * Buffering period * Picture timing * Pan-scan rectangle (display as 4:3) * User data registered, containing A/53 closed captions (captions match frame content, including reordering) * Recovery point (at the I frame) * Display orientation (identity transformation) * Mastering display (with arbitrary contents) * Undefined SEI type 1234 (containing ascending bytes)
Diffstat (limited to 'tests')
-rw-r--r--tests/fate/cbs.mak8
-rw-r--r--tests/ref/fate/cbs-h264-sei-11
2 files changed, 7 insertions, 2 deletions
diff --git a/tests/fate/cbs.mak b/tests/fate/cbs.mak
index bee349ed45..911e7704aa 100644
--- a/tests/fate/cbs.mak
+++ b/tests/fate/cbs.mak
@@ -14,7 +14,7 @@ endef
# H.264 read/write
-FATE_CBS_H264_SAMPLES = \
+FATE_CBS_H264_CONFORMANCE_SAMPLES = \
SVA_Base_B.264 \
BASQP1_Sony_C.jsv \
FM1_BT_B.h264 \
@@ -30,7 +30,11 @@ FATE_CBS_H264_SAMPLES = \
CVSE2_Sony_B.jsv \
CABACI3_Sony_B.jsv
-$(foreach N,$(FATE_CBS_H264_SAMPLES),$(eval $(call FATE_CBS_TEST,h264,$(basename $(N)),h264-conformance/$(N),h264)))
+FATE_CBS_H264_SAMPLES = \
+ sei-1.h264
+
+$(foreach N,$(FATE_CBS_H264_CONFORMANCE_SAMPLES),$(eval $(call FATE_CBS_TEST,h264,$(basename $(N)),h264-conformance/$(N),h264)))
+$(foreach N,$(FATE_CBS_H264_SAMPLES),$(eval $(call FATE_CBS_TEST,h264,$(basename $(N)),h264/$(N),h264)))
FATE_CBS_H264-$(call FATE_CBS_DEPS, H264, H264, H264, H264, H264) = $(FATE_CBS_h264)
FATE_SAMPLES_AVCONV += $(FATE_CBS_H264-yes)
diff --git a/tests/ref/fate/cbs-h264-sei-1 b/tests/ref/fate/cbs-h264-sei-1
new file mode 100644
index 0000000000..2d1cb1fe7f
--- /dev/null
+++ b/tests/ref/fate/cbs-h264-sei-1
@@ -0,0 +1 @@
+5f537551b7dfab76a172f1aebb028986