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 <asahukar@codeaurora.org>
This commit is contained in:
Akshata Sahukar 2019-07-11 17:03:15 -07:00
commit 99aa37e4ae

View file

@ -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;