diff options
author | wm4 <wm4@nowhere> | 2016-01-20 15:35:15 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2016-01-20 15:35:15 +0100 |
commit | a8abb53a5d00d023aa6cb753ccaa6810e1640338 (patch) | |
tree | b865aa59c0e7250e0d9aedaae0302caeb4993538 /video/decode | |
parent | aaafbfcc06a8e69bca78641af70f43b2ad12e56a (diff) | |
download | mpv-a8abb53a5d00d023aa6cb753ccaa6810e1640338.tar.bz2 mpv-a8abb53a5d00d023aa6cb753ccaa6810e1640338.tar.xz |
vaapi: fix compilation on older FFmpeg/Libav
They don't define FF_PROFILE_VP9_0.
Fixes #2737.
Diffstat (limited to 'video/decode')
-rw-r--r-- | video/decode/vaapi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/video/decode/vaapi.c b/video/decode/vaapi.c index edc95f5a29..313a901db2 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, \ |