diff options
author | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2015-05-05 10:36:35 +0300 |
---|---|---|
committer | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2015-05-05 10:36:35 +0300 |
commit | 9aa77a77b1d81a5c998f2707dc7004d2bf994f30 (patch) | |
tree | 1d8e1cd5ec22bce39548cca80f96c0e7cf657957 | |
parent | bbe738f9a29d240c6cc0b4f17e463193b719aa7e (diff) |
Zero the planes array before queuing buffers
V4L2 requires reserved fields to be zeroed.
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
-rw-r--r-- | yavta.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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; |