From 38499c949de0df1eabd6b5b4952a091f9ea5a9a6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Olivier=20Cr=C3=AAte?= Date: Mon, 12 May 2025 16:40:05 -0400 Subject: [PATCH] h264parse test: Send PPS in SPS parsing test Without the PPS, the codec_data can not be created Part-of: --- .../gst-plugins-bad/tests/check/elements/h264parse.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/subprojects/gst-plugins-bad/tests/check/elements/h264parse.c b/subprojects/gst-plugins-bad/tests/check/elements/h264parse.c index a5bffd9a09..693fb67001 100644 --- a/subprojects/gst-plugins-bad/tests/check/elements/h264parse.c +++ b/subprojects/gst-plugins-bad/tests/check/elements/h264parse.c @@ -351,6 +351,13 @@ verify_h264parse_compatible_caps (guint profile_idc, guint constraint_set_flags, gst_buffer_fill (buf, 0, frame_sps, frame_sps_len); g_free (frame_sps); fail_unless_equals_int (gst_harness_push (h, buf), GST_FLOW_OK); + + /* push pps buffer */ + buf = gst_buffer_new_wrapped_full (GST_MEMORY_FLAG_READONLY, h264_pps, + sizeof (h264_pps), 0, sizeof (h264_pps), NULL, NULL); + fail_unless_equals_int (gst_harness_push (h, buf), GST_FLOW_OK); + + /* send eos */ fail_unless (gst_harness_push_event (h, gst_event_new_eos ())); /* check that the caps have been negociated correctly */