diff options
author | Mark Thompson <sw@jkqxz.net> | 2017-10-01 22:50:59 +0100 |
---|---|---|
committer | Mark Thompson <sw@jkqxz.net> | 2017-10-24 23:30:55 +0100 |
commit | 94ab0bef408c738b18d851c47a5bcd69a6258cc2 (patch) | |
tree | 853e9fba26b9b78fb0df3ff9f40a431b4c3fd56e | |
parent | b487add7ecf78efda36d49815f8f8757bd24d4cb (diff) | |
download | ffmpeg-94ab0bef408c738b18d851c47a5bcd69a6258cc2.tar.gz |
vaapi: Disable deprecation warnings around use of struct vaapi_context
-rw-r--r-- | libavcodec/vaapi_decode.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libavcodec/vaapi_decode.h b/libavcodec/vaapi_decode.h index e195e863a0..fda228b5a9 100644 --- a/libavcodec/vaapi_decode.h +++ b/libavcodec/vaapi_decode.h @@ -24,6 +24,7 @@ #include "libavutil/frame.h" #include "libavutil/hwcontext.h" #include "libavutil/hwcontext_vaapi.h" +#include "libavutil/internal.h" #include "avcodec.h" @@ -57,9 +58,11 @@ typedef struct VAAPIDecodeContext { VAContextID va_context; #if FF_API_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; |