[FFmpeg-cvslog] vaapi: Disable deprecation warnings around use of old struct vaapi_context

Mark Thompson git at videolan.org
Wed Sep 20 01:15:45 EEST 2017


ffmpeg | branch: master | Mark Thompson <sw at jkqxz.net> | Thu Sep 14 22:11:45 2017 +0100| [375cf55fe9f574e42bd3519f08993125ac66c725] | committer: Mark Thompson

vaapi: Disable deprecation warnings around use of old struct vaapi_context

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=375cf55fe9f574e42bd3519f08993125ac66c725
---

 libavcodec/vaapi_decode.h | 2 ++
 1 file changed, 2 insertions(+)

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;



More information about the ffmpeg-cvslog mailing list