summaryrefslogtreecommitdiff
path: root/libavfilter/avfilter.c
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.c
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.c')
-rw-r--r--libavfilter/avfilter.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libavfilter/avfilter.c b/libavfilter/avfilter.c
index ff7df672fd..ea75467a75 100644
--- a/libavfilter/avfilter.c
+++ b/libavfilter/avfilter.c
@@ -183,10 +183,12 @@ 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)
{