Merge "msm: vidc: Fix criteria for hybrid hierp enablement"

This commit is contained in:
qctecmdr 2019-07-16 02:27:02 -07:00 committed by Gerrit - the friendly Code Review server
commit 760ff0acd6

View File

@ -3189,7 +3189,7 @@ int msm_venc_enable_hybrid_hp(struct msm_vidc_inst *inst)
ctrl = get_ctrl(inst,
V4L2_CID_MPEG_VIDC_VIDEO_HEVC_MAX_HIER_CODING_LAYER);
layer = get_ctrl(inst, V4L2_CID_MPEG_VIDEO_HEVC_HIER_CODING_LAYER);
if (ctrl->val != layer->val)
if (ctrl->val == 0 || ctrl->val != layer->val)
return 0;
/*