Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mpc-hc/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2016-09-30 22:21:46 +0300
committerMark Thompson <sw@jkqxz.net>2016-11-13 23:39:49 +0300
commit775a8477b74bb2fa95ca2b13c08f3fd8d6c617b6 (patch)
tree4f5d7dd11b889a00b0d24ab7b7eb146d8c12b883 /libavutil/hwcontext_vaapi.h
parent8d47d8407569aade0c0d564600919349789dc38b (diff)
hwcontext_vaapi: add a quirk for the missing MemoryType attribute
The Intel binary iHD driver does not support the VASurfaceAttribMemoryType, so surface allocation will fail when using it. (cherry picked from commit 2124711b950b03c582a119c75f52a87acc32d6ec)
Diffstat (limited to 'libavutil/hwcontext_vaapi.h')
-rw-r--r--libavutil/hwcontext_vaapi.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/libavutil/hwcontext_vaapi.h b/libavutil/hwcontext_vaapi.h
index 8bd8031b9d..da1d4fe6c2 100644
--- a/libavutil/hwcontext_vaapi.h
+++ b/libavutil/hwcontext_vaapi.h
@@ -45,6 +45,12 @@ enum {
* separately afterwards.
*/
AV_VAAPI_DRIVER_QUIRK_RENDER_PARAM_BUFFERS = (1 << 1),
+
+ /**
+ * The driver does not support the VASurfaceAttribMemoryType attribute,
+ * so the surface allocation code will not try to use it.
+ */
+ AV_VAAPI_DRIVER_QUIRK_ATTRIB_MEMTYPE = (1 << 2),
};
/**