aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDiego Biurrun <diego@biurrun.de>2013-02-28 19:24:29 +0100
committerDiego Biurrun <diego@biurrun.de>2013-07-27 16:08:49 +0200
commitbf4b0ed1d5d323050a87c9f0ad1dd40860eb3da2 (patch)
treeb760a6548cea40fcb5a0b82c1abaf1144cdc38f2
parent5b097399baa2e38cc513939cfab3a9b6fdbc33df (diff)
downloadffmpeg-bf4b0ed1d5d323050a87c9f0ad1dd40860eb3da2.tar.gz
Add missing deprecation attributes
-rw-r--r--libavcodec/avcodec.h3
-rw-r--r--libavfilter/avfilter.h5
-rw-r--r--libavutil/pixdesc.h4
3 files changed, 8 insertions, 4 deletions
diff --git a/libavcodec/avcodec.h b/libavcodec/avcodec.h
index f4a10e10e7..bd9a80c5ee 100644
--- a/libavcodec/avcodec.h
+++ b/libavcodec/avcodec.h
@@ -29,6 +29,7 @@
#include <errno.h>
#include "libavutil/samplefmt.h"
+#include "libavutil/attributes.h"
#include "libavutil/avutil.h"
#include "libavutil/buffer.h"
#include "libavutil/cpu.h"
@@ -1772,7 +1773,7 @@ typedef struct AVCodecContext {
* - decoding: Set by user.
* @deprecated Deprecated in favor of request_channel_layout.
*/
- int request_channels;
+ attribute_deprecated int request_channels;
#endif
/**
diff --git a/libavfilter/avfilter.h b/libavfilter/avfilter.h
index b59e292e3e..e7417213f1 100644
--- a/libavfilter/avfilter.h
+++ b/libavfilter/avfilter.h
@@ -33,6 +33,7 @@
* @{
*/
+#include "libavutil/attributes.h"
#include "libavutil/avutil.h"
#include "libavutil/frame.h"
#include "libavutil/log.h"
@@ -563,14 +564,14 @@ struct AVFilterContext {
AVFilterPad *input_pads; ///< array of input pads
AVFilterLink **inputs; ///< array of pointers to input links
#if FF_API_FOO_COUNT
- unsigned input_count; ///< @deprecated use nb_inputs
+ attribute_deprecated unsigned input_count; ///< @deprecated use nb_inputs
#endif
unsigned nb_inputs; ///< number of input pads
AVFilterPad *output_pads; ///< array of output pads
AVFilterLink **outputs; ///< array of pointers to output links
#if FF_API_FOO_COUNT
- unsigned output_count; ///< @deprecated use nb_outputs
+ attribute_deprecated unsigned output_count; ///< @deprecated use nb_outputs
#endif
unsigned nb_outputs; ///< number of output pads
diff --git a/libavutil/pixdesc.h b/libavutil/pixdesc.h
index 143c0fa8b2..b1ba03f089 100644
--- a/libavutil/pixdesc.h
+++ b/libavutil/pixdesc.h
@@ -23,6 +23,8 @@
#define AVUTIL_PIXDESC_H
#include <inttypes.h>
+
+#include "attributes.h"
#include "pixfmt.h"
typedef struct AVComponentDescriptor{
@@ -136,7 +138,7 @@ typedef struct AVPixFmtDescriptor{
/**
* The array of all the pixel format descriptors.
*/
-extern const AVPixFmtDescriptor av_pix_fmt_descriptors[];
+extern attribute_deprecated const AVPixFmtDescriptor av_pix_fmt_descriptors[];
#endif
/**