Always clear v4l2_plane before sending them to the kernel

This commit is contained in:
Florent Revest
2016-08-29 17:44:23 +02:00
parent 5412e2676b
commit c8e187aed5
5 changed files with 15 additions and 1 deletions
+2
View File
@@ -52,6 +52,8 @@ VAStatus sunxi_cedrus_CreateBuffer(VADriverContextP ctx, VAContextID context,
struct v4l2_plane plane[1];
object_buffer_p obj_buffer;
memset(plane, 0, sizeof(struct v4l2_plane));
/* Validate type */
switch (type)
{