Commit 5573a5bcc8 for ffmpeg

commit 5573a5bcc8437edc20cfae3277dd6bdde002e7a9
Author: luoye-cpu <3412829159@qq.com>
Date:   Mon Nov 16 10:09:15 2026 +0800

    fate: add HDR10+ zero-padding regression test

    Add fate-hevc-hdr10-plus-padded-sei-metadata next to the existing HDR10+
    HEVC test in tests/fate/hevc.mak. It probes the decoded frame side data
    of a one-frame HEVC sample whose HDR10+ SEI payload exceeds
    AV_HDR_PLUS_MAX_PAYLOAD_SIZE with an all-zero excess, and compares the
    result against a reference. Unpatched master decodes no frame from the
    sample, so the test fails there; with the previous commit the HDR10+
    metadata is present.

    The sample is derived from a real device recording, with
    targeted_system_display_maximum_luminance zeroed so the metadata satisfies
    the corresponding HDR10+ Profile A constraint; the oversized payload and
    its all-zero excess are preserved. The unmodified recording is attached
    to the pull request separately and is not used by this test.

    The sample is listed in a fate-samples block in the pull request and
    attached there so CI can inject it; it still needs to be added to the
    official FATE suite under hevc/.

    Signed-off-by: luoye-cpu <3412829159@qq.com>

diff --git a/tests/fate/hevc.mak b/tests/fate/hevc.mak
index c5f457752d..58008b9454 100644
--- a/tests/fate/hevc.mak
+++ b/tests/fate/hevc.mak
@@ -292,6 +292,9 @@ FATE_HEVC_FFPROBE-$(call PARSERDEMDEC, HEVC, HEVC, HEVC, EXTRACT_EXTRADATA_BSF)
 fate-hevc-hdr10-plus-metadata: CMD = probeframes -show_entries frame=side_data_list $(TARGET_SAMPLES)/hevc/hdr10_plus_h265_sample.hevc
 FATE_HEVC_FFPROBE-$(call DEMDEC, HEVC, HEVC) += fate-hevc-hdr10-plus-metadata

+fate-hevc-hdr10-plus-padded-sei-metadata: CMD = probeframes -show_entries frame=side_data_list $(TARGET_SAMPLES)/hevc/hdr10plus-padded-1f.mp4
+FATE_HEVC_FFPROBE-$(call DEMDEC, MOV, HEVC) += fate-hevc-hdr10-plus-padded-sei-metadata
+
 fate-hevc-hdr-vivid-metadata: CMD = probeframes -show_entries frame=side_data_list $(TARGET_SAMPLES)/hevc/hdr_vivid_h265_sample.hevc
 FATE_HEVC_FFPROBE-$(call PARSERDEMDEC, HEVC, HEVC, HEVC) += fate-hevc-hdr-vivid-metadata

diff --git a/tests/ref/fate/hevc-hdr10-plus-padded-sei-metadata b/tests/ref/fate/hevc-hdr10-plus-padded-sei-metadata
new file mode 100644
index 0000000000..78039055c0
--- /dev/null
+++ b/tests/ref/fate/hevc-hdr10-plus-padded-sei-metadata
@@ -0,0 +1,32 @@
+[FRAME]
+[SIDE_DATA]
+side_data_type=HDR Dynamic Metadata SMPTE2094-40 (HDR10+)
+application version=1
+num_windows=1
+targeted_system_display_maximum_luminance=0/1
+maxscl=7230/100000
+maxscl=7230/100000
+maxscl=7230/100000
+average_maxrgb=1649/100000
+num_distribution_maxrgb_percentiles=9
+distribution_maxrgb_percentage=1
+distribution_maxrgb_percentile=40/100000
+distribution_maxrgb_percentage=5
+distribution_maxrgb_percentile=6788/100000
+distribution_maxrgb_percentage=10
+distribution_maxrgb_percentile=255/100000
+distribution_maxrgb_percentage=25
+distribution_maxrgb_percentile=1137/100000
+distribution_maxrgb_percentage=50
+distribution_maxrgb_percentile=1763/100000
+distribution_maxrgb_percentage=75
+distribution_maxrgb_percentile=2126/100000
+distribution_maxrgb_percentage=90
+distribution_maxrgb_percentile=2514/100000
+distribution_maxrgb_percentage=95
+distribution_maxrgb_percentile=2887/100000
+distribution_maxrgb_percentage=99
+distribution_maxrgb_percentile=6788/100000
+fraction_bright_pixels=0/1000
+[/SIDE_DATA]
+[/FRAME]