Commit ed6a891c authored by Diego Biurrun's avatar Diego Biurrun

Place attribute_deprecated in the right position for struct declarations

libavcodec/vaapi.h:58:1: warning: attribute 'deprecated' is ignored, place it after "struct" to apply attribute to type declaration [-Wignored-attributes]
parent 04d2afa9
...@@ -55,8 +55,7 @@ ...@@ -55,8 +55,7 @@
* *
* Deprecated: use AVCodecContext.hw_frames_ctx instead. * Deprecated: use AVCodecContext.hw_frames_ctx instead.
*/ */
attribute_deprecated struct attribute_deprecated vaapi_context {
struct vaapi_context {
/** /**
* Window system dependent data * Window system dependent data
* *
......
...@@ -45,7 +45,7 @@ ...@@ -45,7 +45,7 @@
#define AV_XVMC_ID 0x1DC711C0 /**< special value to ensure that regular pixel routines haven't corrupted the struct #define AV_XVMC_ID 0x1DC711C0 /**< special value to ensure that regular pixel routines haven't corrupted the struct
the number is 1337 speak for the letters IDCT MCo (motion compensation) */ the number is 1337 speak for the letters IDCT MCo (motion compensation) */
attribute_deprecated struct xvmc_pix_fmt { struct attribute_deprecated xvmc_pix_fmt {
/** The field contains the special constant value AV_XVMC_ID. /** The field contains the special constant value AV_XVMC_ID.
It is used as a test that the application correctly uses the API, It is used as a test that the application correctly uses the API,
and that there is no corruption caused by pixel routines. and that there is no corruption caused by pixel routines.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment