aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLi, Zhong <zhong.li@intel.com>2017-12-07 14:44:26 +0800
committerMaxym Dmytrychenko <maxim.d33@gmail.com>2017-12-12 13:58:18 +0100
commitbddb2ce179c57db6e3c79fdc3363c165d90850b0 (patch)
tree72311a824f38ab3aee9c4054d0a36c5228d5987a
parent6ff29343b01923e9b125fe7404ac8701cdfb1fe5 (diff)
downloadffmpeg-bddb2ce179c57db6e3c79fdc3363c165d90850b0.tar.gz
lavc/qsvenc: ICQ/VCM/QVBR are not avilable on Linux
Signed-off-by: Zhong Li <zhong.li@intel.com> Signed-off-by: Maxym Dmytrychenko <maxim.d33@gmail.com>
-rw-r--r--libavcodec/qsvenc.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/libavcodec/qsvenc.h b/libavcodec/qsvenc.h
index 9b0b84b919..7f11460d08 100644
--- a/libavcodec/qsvenc.h
+++ b/libavcodec/qsvenc.h
@@ -43,9 +43,16 @@
#define QSV_HAVE_LA QSV_VERSION_ATLEAST(1, 7)
#define QSV_HAVE_LA_HRD QSV_VERSION_ATLEAST(1, 11)
+
+#if defined(_WIN32)
#define QSV_HAVE_ICQ QSV_VERSION_ATLEAST(1, 8)
#define QSV_HAVE_VCM QSV_VERSION_ATLEAST(1, 8)
#define QSV_HAVE_QVBR QSV_VERSION_ATLEAST(1, 11)
+#else
+#define QSV_HAVE_ICQ 0
+#define QSV_HAVE_VCM 0
+#define QSV_HAVE_QVBR 0
+#endif
#define QSV_COMMON_OPTS \
{ "async_depth", "Maximum processing parallelism", OFFSET(qsv.async_depth), AV_OPT_TYPE_INT, { .i64 = ASYNC_DEPTH_DEFAULT }, 0, INT_MAX, VE }, \