vl: Also disable MPEG2 Main profile when mpeg12 decode is disabled

Fixes: f4959c16c8 ("meson: add mpeg12dec as a video-codec")
Reviewed-by: Benjamin Cheng <benjamin.cheng@amd.com>
(cherry picked from commit 55bab89951)

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/40359>
This commit is contained in:
David Rosca 2026-02-03 11:02:54 +01:00 committed by Eric Engestrom
parent 7d25d214f5
commit c001485f3b
2 changed files with 2 additions and 2 deletions

View file

@ -3884,7 +3884,7 @@
"description": "vl: Also disable MPEG2 Main profile when mpeg12 decode is disabled",
"nominated": true,
"nomination_type": 2,
"resolution": 0,
"resolution": 1,
"main_sha": null,
"because_sha": "f4959c16c82cec630b68a43b5d6ea06c1748c606",
"notes": null

View file

@ -58,7 +58,7 @@ bool vl_codec_supported(struct pipe_screen *screen,
return false;
}
if (profile >= PIPE_VIDEO_PROFILE_MPEG1 &&
profile <= PIPE_VIDEO_PROFILE_MPEG2_SIMPLE) {
profile <= PIPE_VIDEO_PROFILE_MPEG2_MAIN) {
if (!VIDEO_CODEC_MPEG12DEC)
return false;
}