forked from gentoo/gentoo
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'github/pr/696'.
Gentoo-Bug: 572386 Pull-Request: gentoo#696
- Loading branch information
Showing
2 changed files
with
24 additions
and
0 deletions.
There are no files selected for viewing
23 changes: 23 additions & 0 deletions
23
media-video/mpv/files/mpv-0.15.0-fix-vaapi-build-on-older-ffmpeg.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
commit a8abb53a5d00d023aa6cb753ccaa6810e1640338 | ||
Author: wm4 <wm4@nowhere> | ||
Date: Wed Jan 20 15:35:15 2016 +0100 | ||
|
||
vaapi: fix compilation on older FFmpeg/Libav | ||
|
||
They don't define FF_PROFILE_VP9_0. | ||
|
||
Fixes #2737. | ||
|
||
diff --git a/video/decode/vaapi.c b/video/decode/vaapi.c | ||
index edc95f5..313a901 100644 | ||
--- a/video/decode/vaapi.c | ||
+++ b/video/decode/vaapi.c | ||
@@ -109,7 +109,7 @@ static const struct va_native_display disp_x11 = { | ||
#endif | ||
|
||
#define HAS_HEVC VA_CHECK_VERSION(0, 38, 0) | ||
-#define HAS_VP9 VA_CHECK_VERSION(0, 38, 1) | ||
+#define HAS_VP9 (VA_CHECK_VERSION(0, 38, 1) && defined(FF_PROFILE_VP9_0)) | ||
|
||
#define PE(av_codec_id, ff_profile, vdp_profile) \ | ||
{AV_CODEC_ID_ ## av_codec_id, FF_PROFILE_ ## ff_profile, \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters