mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-10 14:19:09 -04:00
Merge "msm: vidc: fix less_or_equal resolution check"
This commit is contained in:
commit
10fbc8019e
1 changed files with 2 additions and 2 deletions
|
|
@ -120,8 +120,8 @@ bool res_is_less_than_or_equal_to(u32 width, u32 height,
|
|||
u32 num_mbs = NUM_MBS_PER_FRAME(height, width);
|
||||
u32 max_side = max(ref_width, ref_height);
|
||||
|
||||
if (num_mbs <= NUM_MBS_PER_FRAME(ref_height, ref_width) ||
|
||||
width <= max_side ||
|
||||
if (num_mbs <= NUM_MBS_PER_FRAME(ref_height, ref_width) &&
|
||||
width <= max_side &&
|
||||
height <= max_side)
|
||||
return true;
|
||||
else
|
||||
|
|
|
|||
Loading…
Reference in a new issue