From 4c65367a077f02d0797fd63d3d82b81aae3d1335 Mon Sep 17 00:00:00 2001 From: Akshata Sahukar Date: Wed, 17 Jul 2019 13:05:19 -0700 Subject: [PATCH] msm: vidc: Enable LTR use contraint by default Encoder shall encode subsequent frames in encoding order subject to the following constraints: - It shall not use short-term reference frames in display/input order older than the current frame with the LTR command applied for future encoding in encoding order. - It shall not use LTR frames not described by the most recent USELTRFRAME. - It may use LTR frames updated after the current frame in encoding order. Change-Id: I167bb0e211c46f892fedb88f8054bc98543ebe8a Signed-off-by: Akshata Sahukar --- msm/vidc/msm_venc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/msm/vidc/msm_venc.c b/msm/vidc/msm_venc.c index 1fe2079ac714..7abbad7e76be 100644 --- a/msm/vidc/msm_venc.c +++ b/msm/vidc/msm_venc.c @@ -3715,7 +3715,7 @@ int msm_venc_set_ltr_useframe(struct msm_vidc_inst *inst) ctrl = get_ctrl(inst, V4L2_CID_MPEG_VIDC_VIDEO_USELTRFRAME); use_ltr.ref_ltr = ctrl->val; - use_ltr.use_constrnt = false; + use_ltr.use_constrnt = true; use_ltr.frames = 0; dprintk(VIDC_HIGH, "%s: %d\n", __func__, use_ltr.ref_ltr); rc = call_hfi_op(hdev, session_set_property, inst->session,