diff options
author | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2014-11-24 18:50:10 +0200 |
---|---|---|
committer | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2016-05-23 01:12:34 +0300 |
commit | 36b54dfbc7c3a5cd85e3f37576e91940158723e8 (patch) | |
tree | b3c5794fdf44c888bc00ac81522670e51c465d51 | |
parent | 6a4e912d157132fce264dee5bc30b6a3133a2a30 (diff) |
libv4l2subdev: Fix missing initializer warning
Set the whole v4l2_mbus_framefmt structure to 0 by initializing the
first field only, achieving the same result while getting rid of the
warning.
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
-rw-r--r-- | 3rdparty/media-ctl/libv4l2subdev.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/3rdparty/media-ctl/libv4l2subdev.c b/3rdparty/media-ctl/libv4l2subdev.c index 3dcf943..8ddc4df 100644 --- a/3rdparty/media-ctl/libv4l2subdev.c +++ b/3rdparty/media-ctl/libv4l2subdev.c @@ -648,7 +648,7 @@ static int set_frame_interval(struct media_entity *entity, static int v4l2_subdev_parse_setup_format(struct media_device *media, const char *p, char **endp) { - struct v4l2_mbus_framefmt format = { 0, 0, 0 }; + struct v4l2_mbus_framefmt format = { 0, }; struct media_pad *pad; struct v4l2_rect crop = { -1, -1, -1, -1 }; struct v4l2_rect compose = crop; |