From cb416629211fb4688438d1ef9d393a1da1668fd0 Mon Sep 17 00:00:00 2001 From: Malathi Gottam Date: Thu, 15 Oct 2020 16:33:27 +0530 Subject: [PATCH] msm: vidc: allocate max input buffer size for specific video hardware For certain video hardware which doesn't support higher resolutions like 4k or above, allocate maximum input buffer size Change-Id: I30a908573cf4d0dce8bcbaeb813913130f051884 Signed-off-by: Malathi Gottam --- msm/vidc/msm_vidc_buffer_calculations.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/msm/vidc/msm_vidc_buffer_calculations.c b/msm/vidc/msm_vidc_buffer_calculations.c index 4797b0bcad43..3dea060b692b 100644 --- a/msm/vidc/msm_vidc_buffer_calculations.c +++ b/msm/vidc/msm_vidc_buffer_calculations.c @@ -910,7 +910,7 @@ u32 msm_vidc_calculate_dec_input_frame_size(struct msm_vidc_inst *inst) * For targets that doesn't support 4k, consider max mb's for that * target and allocate max input buffer size for the same */ - if (base_res_mbs > inst->capability.cap[CAP_MBS_PER_FRAME].max) { + if (inst->core->platform_data->vpu_ver == VPU_VERSION_AR50_LITE) { base_res_mbs = inst->capability.cap[CAP_MBS_PER_FRAME].max; div_factor = 1; }