[vlc-devel] [PATCH] directx_va: conditionnally declare workarounded profile
Alexandre Janniaux
ajanni at videolabs.io
Wed Mar 25 14:30:06 CET 2020
The profile is not used if the define doesn't exist.
---
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 5f5da23b7f..859ddb22b3 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 };
--
2.26.0
More information about the vlc-devel
mailing list