mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 02:48:06 +02:00
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 commit55bab89951) Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/40359>
This commit is contained in:
parent
7d25d214f5
commit
c001485f3b
2 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue