]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/vaapi.h
adpcm: fix clipping for yamaha
[ffmpeg] / libavcodec / vaapi.h
index 7a29f6f8811530ec2beb5c945b88fabb417b83ce..e68912d93b5649db273a0d3c708246853e31955c 100644 (file)
@@ -34,6 +34,8 @@
 #include "libavutil/attributes.h"
 #include "version.h"
 
+#if FF_API_STRUCT_VAAPI_CONTEXT
+
 /**
  * @defgroup lavc_codec_hwaccel_vaapi VA API Decoding
  * @ingroup lavc_codec_hwaccel
  * during initialization or through each AVCodecContext.get_buffer()
  * function call. In any case, they must be valid prior to calling
  * decoding functions.
+ *
+ * Deprecated: use AVCodecContext.hw_frames_ctx instead.
  */
+attribute_deprecated
 struct vaapi_context {
     /**
      * Window system dependent data
@@ -186,4 +191,6 @@ struct vaapi_context {
 
 /* @} */
 
+#endif /* FF_API_STRUCT_VAAPI_CONTEXT */
+
 #endif /* AVCODEC_VAAPI_H */