Commit b23dea44 authored by Edward Hervey's avatar Edward Hervey 🤘 Committed by Sebastian Dröge

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
parent 23f5c02c
......@@ -315,7 +315,7 @@ gst_grabcut_transform_ip (GstOpencvVideoFilter * filter, GstBuffer * buffer,
gc->facepos.width = meta->w * gc->scale * 0.9;
gc->facepos.height = meta->h * gc->scale * 1.1;
} else {
memset (&(gc->facepos), 0, sizeof (gc->facepos));
memset (static_cast<void*>(&(gc->facepos)), 0, sizeof (gc->facepos));
}
/* normally input should be RGBA */
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment