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

Mark Thompson git at videolan.org
Sun Nov 12 04:36:10 EET 2017


ffmpeg | branch: master | Mark Thompson <sw at jkqxz.net> | Sun Oct  1 22:50:59 2017 +0100| [94ab0bef408c738b18d851c47a5bcd69a6258cc2] | committer: Mark Thompson

vaapi: Disable deprecation warnings around use of struct vaapi_context

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

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

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;



More information about the ffmpeg-cvslog mailing list