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 <thong.thai@amd.com>
Signed-off-by: default avatarMarek Olšák <marek.olsak@amd.com>
Cc: 19.2 19.3 <mesa-stable@lists.freedesktop.org>
parent 9b710416
Pipeline #95080 waiting for manual action with stages