From da5b05c8335d2c29355b95257f466211d04ab81d Mon Sep 17 00:00:00 2001 From: James Almer Date: Fri, 5 Jan 2018 22:13:28 -0300 Subject: Revert "avfilter: deprecate avfilter_link_get_channels()" This reverts commit 798dcf2432999f449c76c0e0fe2d7a4ee5eabbc2. It was applied by accident before it could be reviewed. --- libavfilter/avfilter.c | 2 -- libavfilter/avfilter.h | 15 +++++---------- libavfilter/version.h | 5 +---- 3 files changed, 6 insertions(+), 16 deletions(-) (limited to 'libavfilter') diff --git a/libavfilter/avfilter.c b/libavfilter/avfilter.c index ea75467a75..ff7df672fd 100644 --- a/libavfilter/avfilter.c +++ b/libavfilter/avfilter.c @@ -183,12 +183,10 @@ void avfilter_link_free(AVFilterLink **link) av_freep(link); } -#if FF_API_FILTER_GET_SET int avfilter_link_get_channels(AVFilterLink *link) { return link->channels; } -#endif void ff_filter_set_ready(AVFilterContext *filter, unsigned priority) { diff --git a/libavfilter/avfilter.h b/libavfilter/avfilter.h index 410d8bbdd7..47546c15e5 100644 --- a/libavfilter/avfilter.h +++ b/libavfilter/avfilter.h @@ -448,11 +448,6 @@ struct AVFilterLink { */ AVRational time_base; - /** - * Number of channels. - */ - int channels; - /***************************************************************** * All fields below this line are not part of the public API. They * may not be used outside of libavfilter and can be changed and @@ -556,6 +551,11 @@ struct AVFilterLink { */ int max_samples; + /** + * Number of channels. + */ + int channels; + /** * Link processing flags. */ @@ -647,15 +647,10 @@ int avfilter_link(AVFilterContext *src, unsigned srcpad, */ void avfilter_link_free(AVFilterLink **link); -#if FF_API_FILTER_GET_SET /** * Get the number of channels of a link. - * @deprecated This accessor used to be provided for ABI compatibility, and - * does not need to be used anymore. */ -attribute_deprecated int avfilter_link_get_channels(AVFilterLink *link); -#endif /** * Set the closed field of a link. diff --git a/libavfilter/version.h b/libavfilter/version.h index 0f11721822..c07f4d30d9 100644 --- a/libavfilter/version.h +++ b/libavfilter/version.h @@ -31,7 +31,7 @@ #define LIBAVFILTER_VERSION_MAJOR 7 #define LIBAVFILTER_VERSION_MINOR 11 -#define LIBAVFILTER_VERSION_MICRO 101 +#define LIBAVFILTER_VERSION_MICRO 100 #define LIBAVFILTER_VERSION_INT AV_VERSION_INT(LIBAVFILTER_VERSION_MAJOR, \ LIBAVFILTER_VERSION_MINOR, \ @@ -55,8 +55,5 @@ #ifndef FF_API_LAVR_OPTS #define FF_API_LAVR_OPTS (LIBAVFILTER_VERSION_MAJOR < 8) #endif -#ifndef FF_API_FILTER_GET_SET -#define FF_API_FILTER_GET_SET (LIBAVFILTER_VERSION_MAJOR < 8) -#endif #endif /* AVFILTER_VERSION_H */ -- cgit v1.2.3