Browse Source

vaapi: Disable deprecation warnings around use of old struct vaapi_context

tags/n3.4
Mark Thompson 8 years ago
parent
commit
375cf55fe9
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      libavcodec/vaapi_decode.h

+ 2
- 0
libavcodec/vaapi_decode.h View File

@@ -59,9 +59,11 @@ typedef struct VAAPIDecodeContext {
VAContextID va_context; VAContextID va_context;


#if FF_API_STRUCT_VAAPI_CONTEXT #if FF_API_STRUCT_VAAPI_CONTEXT
FF_DISABLE_DEPRECATION_WARNINGS
int have_old_context; int have_old_context;
struct vaapi_context *old_context; struct vaapi_context *old_context;
AVBufferRef *device_ref; AVBufferRef *device_ref;
FF_ENABLE_DEPRECATION_WARNINGS
#endif #endif


AVHWDeviceContext *device; AVHWDeviceContext *device;


Loading…
Cancel
Save