Commit 3a4f8c81 authored by Thong Thai's avatar Thong Thai Committed by Marek Olšák

mesa: Prevent _MaxLevel from being less than zero

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's avatarThong Thai <>
Signed-off-by: default avatarMarek Olšák <>
Cc: 19.2 19.3 <>
parent 9b710416
Pipeline #95080 waiting for manual action with stages