[vlc-commits] directx_va: conditionnally declare workarounded profile
Alexandre Janniaux
git at videolan.org
Mon Mar 30 09:46:16 CEST 2020
vlc | branch: master | Alexandre Janniaux <ajanni at videolabs.io> | Wed Mar 25 14:30:06 2020 +0100| [fd552b785ab6798e641dacc1f611b497a6fbb38b] | committer: Alexandre Janniaux
directx_va: conditionnally declare workarounded profile
The profile is not used if the define doesn't exist.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=fd552b785ab6798e641dacc1f611b497a6fbb38b
---
modules/codec/avcodec/directx_va.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/modules/codec/avcodec/directx_va.c b/modules/codec/avcodec/directx_va.c
index 0b5ff68a04..fc8d4edae1 100644
--- a/modules/codec/avcodec/directx_va.c
+++ b/modules/codec/avcodec/directx_va.c
@@ -59,8 +59,11 @@ static const int PROF_HEVC_MAIN[] = { FF_PROFILE_HEVC_MAIN,
static const int PROF_HEVC_MAIN10[] = { FF_PROFILE_HEVC_MAIN,
FF_PROFILE_HEVC_MAIN_10,
FF_PROFILE_UNKNOWN };
+
+#ifdef FF_DXVA2_WORKAROUND_HEVC_REXT
static const int PROF_HEVC_MAIN_REXT[] = { FF_PROFILE_HEVC_REXT,
FF_PROFILE_UNKNOWN };
+#endif
static const int PROF_VP9_MAIN[] = { FF_PROFILE_VP9_0, FF_PROFILE_UNKNOWN };
static const int PROF_VP9_10[] = { FF_PROFILE_VP9_2, FF_PROFILE_UNKNOWN };
More information about the vlc-commits
mailing list