mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-26 04:46:13 +00:00
opencv: Fix memcpy within C++
Explicitly cast to void* because GCC 8 is (rightfully) upset that this is "writing to an object of type ‘...’ with no trivial copy-assignment". Caused by the new "class-memaccess" warning
This commit is contained in:
parent
5c450c5992
commit
45d6256dad
1 changed files with 1 additions and 1 deletions
|
@ -315,7 +315,7 @@ gst_grabcut_transform_ip (GstOpencvVideoFilter * filter, GstBuffer * buffer,
|
||||||
gc->facepos.width = meta->w * gc->scale * 0.9;
|
gc->facepos.width = meta->w * gc->scale * 0.9;
|
||||||
gc->facepos.height = meta->h * gc->scale * 1.1;
|
gc->facepos.height = meta->h * gc->scale * 1.1;
|
||||||
} else {
|
} else {
|
||||||
memset (&(gc->facepos), 0, sizeof (gc->facepos));
|
memset (static_cast<void*>(&(gc->facepos)), 0, sizeof (gc->facepos));
|
||||||
}
|
}
|
||||||
|
|
||||||
/* normally input should be RGBA */
|
/* normally input should be RGBA */
|
||||||
|
|
Loading…
Reference in a new issue