From 9a2ce2683bb0725c3d0c6109998d4d6f79285066 Mon Sep 17 00:00:00 2001 From: Brad Hards Date: Thu, 17 Feb 2022 15:55:19 +1100 Subject: [PATCH] h264parse: fix copying of data and UUID Part-of: --- subprojects/gst-plugins-base/gst-libs/gst/video/video-sei.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/subprojects/gst-plugins-base/gst-libs/gst/video/video-sei.c b/subprojects/gst-plugins-base/gst-libs/gst/video/video-sei.c index d438969479..2a8ebcec5f 100644 --- a/subprojects/gst-plugins-base/gst-libs/gst/video/video-sei.c +++ b/subprojects/gst-plugins-base/gst-libs/gst/video/video-sei.c @@ -177,7 +177,8 @@ gst_buffer_add_video_sei_user_data_unregistered_meta (GstBuffer * buffer, meta = (GstVideoSEIUserDataUnregisteredMeta *) gst_buffer_add_meta (buffer, GST_VIDEO_SEI_USER_DATA_UNREGISTERED_META_INFO, NULL); g_assert (meta != NULL); - + memcpy (meta->uuid, uuid, 16); + meta->data = g_malloc (size); memcpy (meta->data, data, size); meta->size = size; -- 2.34.1