From c77149bc37f5a200e635c60bf6eb4efc7b03af91 Mon Sep 17 00:00:00 2001 From: Haihao Xiang Date: Wed, 19 Aug 2020 09:43:12 +0800 Subject: qsv: restrict OPAQUE memory to MFX_VERSION < 2.0 OPAQUE memory isn't supported for MFX_VERSION >= 2.0[1][2]. This is in preparation for oneVPL support [1] https://spec.oneapi.io/versions/latest/elements/oneVPL/source/VPL_intel_media_sdk.html#msdk-full-name-feature-removals [2] https://github.com/oneapi-src/oneVPL --- libavcodec/qsv.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'libavcodec/qsv.h') diff --git a/libavcodec/qsv.h b/libavcodec/qsv.h index 04ae0d6f34..c156b08d07 100644 --- a/libavcodec/qsv.h +++ b/libavcodec/qsv.h @@ -61,6 +61,8 @@ typedef struct AVQSVContext { * required by the encoder and the user-provided value nb_opaque_surfaces. * The array of the opaque surfaces will be exported to the caller through * the opaque_surfaces field. + * + * The caller must set this field to zero for oneVPL (MFX_VERSION >= 2.0) */ int opaque_alloc; -- cgit v1.2.3