tests/fate/spdif: add TrueHD branch padding test

Add a small synthetic TrueHD sample that exercises large MAT padding in
spdifenc. The sample covers both the input_timing path with padding above
MAT_FRAME_SIZE / 2 and the output_timing discontinuity path.

It also verifies queued MAT frame emission when one input packet completes
more than one MAT frame.

Signed-off-by: Nathan Lucas <nlucasgit@gmail.com>
This commit is contained in:
Nathan Lucas
2026-07-05 16:26:31 -06:00
parent 2db563fac2
commit 7002e01c19
2 changed files with 4 additions and 0 deletions

View File

@@ -40,6 +40,9 @@ fate-spdif-mp3-remux: CMD = transcode mp3 $(TARGET_SAMPLES)/audiomatch/square3.m
FATE_SPDIF-$(call DEMMUX, TRUEHD, SPDIF) += fate-spdif-truehd
fate-spdif-truehd: CMD = md5 -i $(TARGET_SAMPLES)/truehd/atmos.thd -c copy -f spdif
FATE_SPDIF-$(call DEMMUX, TRUEHD, SPDIF) += fate-spdif-truehd-branch-padding
fate-spdif-truehd-branch-padding: CMD = md5 -i $(TARGET_SAMPLES)/truehd/spdifenc-branch-padding.thd -c copy -f spdif
# Make the demuxer support all the formats supported by the muxer
# and switch the md5 tests to remux tests?
FATE_SPDIF-$(call REMUX, SPDIF) += $(FATE_SPDIF_REMUX-yes)

View File

@@ -0,0 +1 @@
08e36c5ef0cc54e48eb2cc7a898e72c4