h264parse: fix copying of data and UUID

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1458>
This commit is contained in:
Brad Hards 2022-02-17 15:55:19 +11:00 committed by GStreamer Marge Bot
parent ca2eb9f65f
commit 9a2ce2683b

View file

@ -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;