avtpcvfpay: tests: Initialize codec memory

If GST_DEBUG was enabled we would print unintialized memory

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/9273>
This commit is contained in:
Doug Nazar 2025-06-22 03:14:39 -04:00 committed by GStreamer Marge Bot
parent 7bf94c4c46
commit d7e90e5a15

View File

@ -316,7 +316,7 @@ GST_START_TEST (test_payloader_invalid_caps)
gst_caps_unref (caps);
/* Send a 'codec_data' too small */
codec_data = gst_buffer_new_allocate (NULL, 6, NULL);
codec_data = gst_buffer_new_wrapped (g_malloc0 (6), 6);
caps = gst_caps_new_simple ("video/x-h264",
"stream-format", G_TYPE_STRING, "avc",
"alignment", G_TYPE_STRING, "au",