summaryrefslogtreecommitdiff
path: root/libavfilter/avfilter.h
diff options
context:
space:
mode:
authorJames Almer <jamrial@gmail.com>2018-01-05 17:49:09 -0300
committerJames Almer <jamrial@gmail.com>2018-01-05 17:49:09 -0300
commit798dcf2432999f449c76c0e0fe2d7a4ee5eabbc2 (patch)
treeee5a53a9e9b9f34907b363a0a3a1a4ed6079a251 /libavfilter/avfilter.h
parentb9ad04b19c0c7244cc3788f3fa45e9fbe0b620a8 (diff)
avfilter: deprecate avfilter_link_get_channels()
And move the channels field to the public section of the struct. Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'libavfilter/avfilter.h')
-rw-r--r--libavfilter/avfilter.h15
1 files changed, 10 insertions, 5 deletions
diff --git a/libavfilter/avfilter.h b/libavfilter/avfilter.h
index 47546c15e5..410d8bbdd7 100644
--- a/libavfilter/avfilter.h
+++ b/libavfilter/avfilter.h
@@ -448,6 +448,11 @@ 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
@@ -552,11 +557,6 @@ struct AVFilterLink {
int max_samples;
/**
- * Number of channels.
- */
- int channels;
-
- /**
* Link processing flags.
*/
unsigned flags;
@@ -647,10 +647,15 @@ 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.