diff options
Diffstat (limited to 'video')
-rw-r--r-- | video/decode/vaapi.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/video/decode/vaapi.c b/video/decode/vaapi.c index 3fa0fd4759..edc95f5a29 100644 --- a/video/decode/vaapi.c +++ b/video/decode/vaapi.c @@ -109,6 +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 PE(av_codec_id, ff_profile, vdp_profile) \ {AV_CODEC_ID_ ## av_codec_id, FF_PROFILE_ ## ff_profile, \ @@ -133,6 +134,9 @@ static const struct hwdec_profile_entry profiles[] = { PE(HEVC, HEVC_MAIN, HEVCMain), PE(HEVC, HEVC_MAIN_10, HEVCMain10), #endif +#if HAS_VP9 + PE(VP9, VP9_0, VP9Profile0), +#endif {0} }; @@ -156,6 +160,9 @@ static const char *str_va_profile(VAProfile profile) PROFILE(HEVCMain); PROFILE(HEVCMain10); #endif +#if HAS_VP9 + PROFILE(VP9Profile0); +#endif #undef PROFILE } return "<unknown>"; |