Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 434899d0 authored by Srinu Gorle's avatar Srinu Gorle
Browse files

msm: venc: Initialize all encoder V4L2 custom control to proper type



If control type is not initialized properly, there can be a chance
default garbage values make custom control type as private.
Initialize all encoder V4L2 custom control type with proper type.

CRs-Fixed: 550808
Change-Id: If912526772a5b807fc72cf78e54f23ac16846f0b
Signed-off-by: default avatarSrinu Gorle <sgorle@codeaurora.org>
parent 72447d3f
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1838,7 +1838,7 @@ static struct v4l2_ctrl **get_cluster(int type, int *size)
int msm_vdec_ctrl_init(struct msm_vidc_inst *inst)
{
	int idx = 0;
	struct v4l2_ctrl_config ctrl_cfg;
	struct v4l2_ctrl_config ctrl_cfg = {0};
	int ret_val = 0;

	ret_val = v4l2_ctrl_handler_init(&inst->ctrl_handler, NUM_CTRLS);
+1 −1
Original line number Diff line number Diff line
@@ -2727,7 +2727,7 @@ int msm_venc_ctrl_init(struct msm_vidc_inst *inst)
{

	int idx = 0;
	struct v4l2_ctrl_config ctrl_cfg;
	struct v4l2_ctrl_config ctrl_cfg = {0};
	int ret_val = 0;
	ret_val = v4l2_ctrl_handler_init(&inst->ctrl_handler, NUM_CTRLS);
	if (ret_val) {