From 48957371a423e5c729423bd20f92574ce58686e5 Mon Sep 17 00:00:00 2001 From: Vikash Garodia Date: Mon, 5 Oct 2020 23:24:09 +0530 Subject: [PATCH] msm: venc: fix the VUI timing info The timing info should represent the number of time units in one seconds, as per the timescale and time units per tick. Update the same while setting the HFI to video firmware. Change-Id: Ifb6bc34ad295e472715fb72813a236c851d4480f Signed-off-by: Vikash Garodia --- 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 5277fb34ca6a..9c603016add0 100644 --- a/msm/vidc/msm_venc.c +++ b/msm/vidc/msm_venc.c @@ -4199,7 +4199,7 @@ int msm_venc_set_vui_timing_info(struct msm_vidc_inst *inst) timing_info.enable = 1; timing_info.fixed_frame_rate = cfr; - timing_info.time_scale = NSEC_PER_SEC; + timing_info.time_scale = (inst->clk_data.frame_rate >> 16) * USEC_PER_SEC; s_vpr_h(inst->sid, "%s: %d %d\n", __func__, timing_info.enable, timing_info.fixed_frame_rate);