aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--utils/common/cv4l-helpers.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/common/cv4l-helpers.h b/utils/common/cv4l-helpers.h
index e4d11f07..f9ee7677 100644
--- a/utils/common/cv4l-helpers.h
+++ b/utils/common/cv4l-helpers.h
@@ -840,7 +840,7 @@ public:
}
void init(const cv4l_buffer &b)
{
- memcpy(this, &b, sizeof(b));
+ *this = b;
if (v4l_type_is_planar(g_type()))
buf.m.planes = planes;
}

Privacy Policy