media: v4l2-ctrls.c: initialize flags field of p_fwht_params
authorHans Verkuil <hverkuil-cisco@xs4all.nl>
Fri, 12 Mar 2021 08:49:55 +0000 (09:49 +0100)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Mon, 22 Mar 2021 10:56:09 +0000 (11:56 +0100)
commitea1611ba3a544b34f89ffa3d1e833caab30a3f09
tree6b9c75899f2f79e89387ba5f9ce15aed9de62e14
parenteaaea4681984c79d2b2b160387b297477f0c1aab
media: v4l2-ctrls.c: initialize flags field of p_fwht_params

The V4L2_CID_STATELESS_FWHT_PARAMS compound control was missing a
proper initialization of the flags field, so after loading the vicodec
module for the first time, running v4l2-compliance for the stateless
decoder would fail on this control because the initial control value
was considered invalid by the vicodec driver.

Initializing the flags field to sane values fixes this.

Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/media/v4l2-core/v4l2-ctrls.c