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:
Edward Hervey 2018-05-11 09:54:22 +02:00 committed by Edward Hervey
parent 5c450c5992
commit 45d6256dad

View file

@ -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 */