summaryrefslogtreecommitdiff
path: root/libavcodec/vaapi_decode.h
diff options
context:
space:
mode:
authorMark Thompson <sw@jkqxz.net>2017-09-14 22:11:45 +0100
committerMark Thompson <sw@jkqxz.net>2017-09-19 22:46:55 +0100
commit375cf55fe9f574e42bd3519f08993125ac66c725 (patch)
treeaf77725c459025b9b4e1d5e8ea6fcedaff5f3f0f /libavcodec/vaapi_decode.h
parentb4ecf2b582f34ff898017836b7df865e6ad9ce92 (diff)
vaapi: Disable deprecation warnings around use of old struct vaapi_context
Diffstat (limited to 'libavcodec/vaapi_decode.h')
-rw-r--r--libavcodec/vaapi_decode.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/libavcodec/vaapi_decode.h b/libavcodec/vaapi_decode.h
index 4fe414c504..550ee05432 100644
--- a/libavcodec/vaapi_decode.h
+++ b/libavcodec/vaapi_decode.h
@@ -59,9 +59,11 @@ typedef struct VAAPIDecodeContext {
VAContextID va_context;
#if FF_API_STRUCT_VAAPI_CONTEXT
+FF_DISABLE_DEPRECATION_WARNINGS
int have_old_context;
struct vaapi_context *old_context;
AVBufferRef *device_ref;
+FF_ENABLE_DEPRECATION_WARNINGS
#endif
AVHWDeviceContext *device;