From f1e15d5437a0f1078e071f5bc2da761b0500bf45 Mon Sep 17 00:00:00 2001 From: Andrzej Hajda Date: Mon, 6 Jul 2015 13:39:10 +0200 Subject: v4l2-mfc-encoder: Correct plane initialization Signed-off-by: Andrzej Hajda Signed-off-by: Mateusz Krawczuk --- v4l2-mfc-encoder/v4l_dev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'v4l2-mfc-encoder') diff --git a/v4l2-mfc-encoder/v4l_dev.c b/v4l2-mfc-encoder/v4l_dev.c index 7a062f2..f1b837e 100644 --- a/v4l2-mfc-encoder/v4l_dev.c +++ b/v4l2-mfc-encoder/v4l_dev.c @@ -179,7 +179,7 @@ int v4l_deq_buf(struct io_dev *dev, enum io_dir dir) /* enqueue buffer, start stream when needed */ int v4l_enq_buf(struct io_dev *dev, enum io_dir dir, int idx) { - struct v4l2_plane planes[MFC_MAX_PLANES]; + struct v4l2_plane planes[MFC_MAX_PLANES]={}; struct v4l2_buffer buf; int i; int ret; -- cgit v1.2.3