From 9aa77a77b1d81a5c998f2707dc7004d2bf994f30 Mon Sep 17 00:00:00 2001 From: Laurent Pinchart Date: Tue, 5 May 2015 10:36:35 +0300 Subject: Zero the planes array before queuing buffers V4L2 requires reserved fields to be zeroed. Signed-off-by: Laurent Pinchart --- yavta.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'yavta.c') diff --git a/yavta.c b/yavta.c index 930645d..7d8ac8e 100644 --- a/yavta.c +++ b/yavta.c @@ -965,6 +965,8 @@ static int video_queue_buffer(struct device *dev, int index, enum buffer_fill_mo unsigned int i; memset(&buf, 0, sizeof buf); + memset(&planes, 0, sizeof planes); + buf.index = index; buf.type = dev->type; buf.memory = dev->memtype; -- cgit v1.2.3