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
@@ -48,6 +48,8 @@ VAStatus sunxi_cedrus_render_mpeg4_slice_data(VADriverContextP ctx,
struct v4l2_buffer buf;
struct v4l2_plane plane[1];
memset(plane, 0, sizeof(struct v4l2_plane));
/* Query */
memset(&(buf), 0, sizeof(buf));
buf.type = V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE;