aboutsummaryrefslogtreecommitdiffstats
path: root/utils/v4l2-ctl/v4l2-ctl-streaming.cpp
diff options
context:
space:
mode:
authorHans Verkuil <hverkuil-cisco@xs4all.nl>2020-05-06 17:55:40 +0200
committerHans Verkuil <hverkuil-cisco@xs4all.nl>2020-05-06 17:55:40 +0200
commite0de0ec4541424a59891038be2a61de9231ad701 (patch)
treea7001855e50605282b6f7d0ac9b959183b74563e /utils/v4l2-ctl/v4l2-ctl-streaming.cpp
parent939e4e7df71e9176230f1486d2fc22592ced62f8 (diff)
v4l2-ctl: zero v4l2_fmtdesc
In several places struct v4l2_fmtdesc was not properly zeroed. Fix this. This missing initialization caused vimc to fail since the new mbus_code field was uninitialized. Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Diffstat (limited to 'utils/v4l2-ctl/v4l2-ctl-streaming.cpp')
-rw-r--r--utils/v4l2-ctl/v4l2-ctl-streaming.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/v4l2-ctl/v4l2-ctl-streaming.cpp b/utils/v4l2-ctl/v4l2-ctl-streaming.cpp
index 95ffe986..0d5a1e1a 100644
--- a/utils/v4l2-ctl/v4l2-ctl-streaming.cpp
+++ b/utils/v4l2-ctl/v4l2-ctl-streaming.cpp
@@ -366,7 +366,7 @@ void streaming_usage()
static enum codec_type get_codec_type(cv4l_fd &fd)
{
cv4l_disable_trace dt(fd);
- struct v4l2_fmtdesc fmt_desc;
+ struct v4l2_fmtdesc fmt_desc = {};
int num_cap_fmts = 0;
int num_compressed_cap_fmts = 0;
int num_out_fmts = 0;

Privacy Policy