Skip to content

mesa: Prevent _MaxLevel from being less than zero

Thong Thai requested to merge thongthai/mesa:fix_maxlevel into master

When decoding using VDPAU, the _MaxLevel value becomes -1 due to NumLevels being equal to 0 at a certain point, and decoding fails due to an assertion later on.

Signed-off-by: Thong Thai

Merge request reports