Skip to content

Commit 2b63037

Browse files
committed
tests/fate/cbs: add tests for APV
Ensure bitexact passthrough using the apv_metadata bsf. Signed-off-by: James Almer <[email protected]>
1 parent c644720 commit 2b63037

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

tests/fate/cbs.mak

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# arguments, it decomposes the stream fully and then recomposes it
33
# without making any changes.
44

5-
fate-cbs: fate-cbs-av1 fate-cbs-h264 fate-cbs-hevc fate-cbs-mpeg2 fate-cbs-vp9 fate-cbs-vvc
5+
fate-cbs: fate-cbs-apv fate-cbs-av1 fate-cbs-h264 fate-cbs-hevc fate-cbs-mpeg2 fate-cbs-vp9 fate-cbs-vvc
66

77
FATE_CBS_DEPS = $(call ALLYES, $(1)_DEMUXER $(2)_PARSER $(3)_METADATA_BSF $(4)_DECODER $(5)_MUXER)
88
FATE_CBS_NO_DEC_DEPS = $(call ALLYES, $(1)_DEMUXER $(1)_PARSER $(1)_METADATA_BSF $(1)_MUXER)
@@ -25,6 +25,17 @@ FATE_CBS_$(1)_DISCARD += fate-cbs-$(1)-discard-$(2)
2525
fate-cbs-$(1)-discard-$(2): CMD = md5 -i $(TARGET_SAMPLES)/$(3) -c:v copy -y -bsf:v filter_units=discard=$(2) -f $(4)
2626
endef
2727

28+
# APV read/write
29+
30+
FATE_CBS_APV_SAMPLES = \
31+
profile_422-10.apv
32+
33+
$(foreach N,$(FATE_CBS_APV_SAMPLES),$(eval $(call FATE_CBS_TEST,apv,$(basename $(N)),apv,apv/$(N),apv)))
34+
35+
FATE_CBS_APV-$(call FATE_CBS_DEPS, APV, APV, APV, APV, APV) = $(FATE_CBS_apv)
36+
FATE_SAMPLES_AVCONV += $(FATE_CBS_APV-yes)
37+
fate-cbs-apv: $(FATE_CBS_APV-yes)
38+
2839
# AV1 read/write
2940

3041
FATE_CBS_AV1_CONFORMANCE_SAMPLES = \

tests/ref/fate/cbs-apv-profile_422-10

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
646c61e4e96b83146da8140c4c2a68b6

0 commit comments

Comments
 (0)