mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-28 03:00:35 +00:00
videometa: fix texture_type memcpy size
Coverity 1139589, 1139588
This commit is contained in:
parent
505c803765
commit
4a401adf38
1 changed files with 2 additions and 2 deletions
|
@ -443,7 +443,7 @@ gst_video_gl_texture_upload_meta_transform (GstBuffer * dest, GstMeta * meta,
|
|||
dmeta->texture_orientation = smeta->texture_orientation;
|
||||
dmeta->n_textures = smeta->n_textures;
|
||||
memcpy (dmeta->texture_type, smeta->texture_type,
|
||||
sizeof (smeta->texture_type[0] * 4));
|
||||
sizeof (smeta->texture_type[0]) * 4);
|
||||
dmeta->buffer = dest;
|
||||
dmeta->upload = smeta->upload;
|
||||
dmeta->user_data = smeta->user_data;
|
||||
|
@ -509,7 +509,7 @@ gst_buffer_add_video_gl_texture_upload_meta (GstBuffer * buffer,
|
|||
|
||||
meta->texture_orientation = texture_orientation;
|
||||
meta->n_textures = n_textures;
|
||||
memcpy (meta->texture_type, texture_type, sizeof (texture_type[0] * 4));
|
||||
memcpy (meta->texture_type, texture_type, sizeof (texture_type[0]) * 4);
|
||||
meta->buffer = buffer;
|
||||
meta->upload = upload;
|
||||
meta->user_data = user_data;
|
||||
|
|
Loading…
Reference in a new issue