mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-25 22:23:14 -04:00
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:
parent
8daa6110c7
commit
99aa37e4ae
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue