Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit e12205e0 authored by Deva Ramasubramanian's avatar Deva Ramasubramanian
Browse files

msm: vidc: Align width & height to 16 prior to calculating the load



NUM_MBS_PER_SEC assumes that the input width and height is already
aligned to 16.  However, callers of this macro don't necessarily ensure
this.  This leads to bugs especially with resolutions such as 1080p for
which the height can be 1080 or 1088.  Hence, instead of making the
assumption, align both parameters to 16 (i.e. macroblock dimensions)
prior to calculating the load.

Change-Id: Ic386d5cdf55fc9549e37439f4586e20c85719e87
Signed-off-by: default avatarDeva Ramasubramanian <dramasub@codeaurora.org>
parent 2049a6cf
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment