From f995aa82d85810e37432fbf49342921c703a4e8d Mon Sep 17 00:00:00 2001 From: Mark Thompson Date: Mon, 7 May 2018 23:55:20 +0100 Subject: [PATCH] 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) --- tests/fate/cbs.mak | 8 ++++++-- tests/ref/fate/cbs-h264-sei-1 | 1 + 2 files changed, 7 insertions(+), 2 deletions(-) create mode 100644 tests/ref/fate/cbs-h264-sei-1 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