From 99aa37e4ae3d3c978aa05cc394243b01b0c1f0c0 Mon Sep 17 00:00:00 2001 From: Akshata Sahukar Date: Thu, 11 Jul 2019 17:03:15 -0700 Subject: [PATCH] msm: vidc: fix downscale resolution calculation Compare unmodified width and height instead of modified values to resolve downscale resolution calculation issue. Change-Id: I06e753e416c356ca0e97a6ad53dc12fe04c5cfa3 Signed-off-by: Akshata Sahukar --- msm/vidc/msm_cvp_external.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/msm/vidc/msm_cvp_external.c b/msm/vidc/msm_cvp_external.c index fe470d7d7951..c3811f89cbf0 100644 --- a/msm/vidc/msm_cvp_external.c +++ b/msm/vidc/msm_cvp_external.c @@ -253,7 +253,7 @@ static int msm_cvp_init_downscale_resolution(struct msm_vidc_inst *inst) ds_height = height; /* Step 4) switch width and height if already switched */ - if (height > width) { + if (cvp->height > cvp->width) { temp = ds_height; ds_height = ds_width; ds_width = temp;