From 7002e01c192e0cd44119cf3e3790c642cb4d0942 Mon Sep 17 00:00:00 2001 From: Nathan Lucas Date: Sun, 5 Jul 2026 16:26:31 -0600 Subject: [PATCH] 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 --- tests/fate/spdif.mak | 3 +++ tests/ref/fate/spdif-truehd-branch-padding | 1 + 2 files changed, 4 insertions(+) create mode 100644 tests/ref/fate/spdif-truehd-branch-padding diff --git a/tests/fate/spdif.mak b/tests/fate/spdif.mak index 89f38cd0db..9928096883 100644 --- a/tests/fate/spdif.mak +++ b/tests/fate/spdif.mak @@ -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) diff --git a/tests/ref/fate/spdif-truehd-branch-padding b/tests/ref/fate/spdif-truehd-branch-padding new file mode 100644 index 0000000000..688606cbfc --- /dev/null +++ b/tests/ref/fate/spdif-truehd-branch-padding @@ -0,0 +1 @@ +08e36c5ef0cc54e48eb2cc7a898e72c4