summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrzej Hajda <a.hajda@samsung.com>2015-07-06 13:39:10 +0200
committerSylwester Nawrocki <s.nawrocki@samsung.com>2015-07-09 15:55:05 +0200
commitf1e15d5437a0f1078e071f5bc2da761b0500bf45 (patch)
tree41d231cc8f752946d798bfce9da709d529a9085a
parentbc9bf75659e9b7b3d12acab4b5e74bda15a51f65 (diff)
v4l2-mfc-encoder: Correct plane initialization
Signed-off-by: Andrzej Hajda <a.hajda@samsung.com> Signed-off-by: Mateusz Krawczuk <m.krawczuk@samsung.com>
-rw-r--r--v4l2-mfc-encoder/v4l_dev.c2
1 files changed, 1 insertions, 1 deletions
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;