summaryrefslogtreecommitdiff
path: root/libavfilter/avfilter.h
diff options
context:
space:
mode:
authorNicolas George <nicolas.george@normalesup.org>2012-12-02 16:31:15 +0100
committerNicolas George <nicolas.george@normalesup.org>2012-12-20 13:03:41 +0100
commit238edd2fe33da8281b3774196c3de503ea64b745 (patch)
tree9f71652f61febabf3bcf35e0cb87f5a2df7bbabd /libavfilter/avfilter.h
parenta9275b4f6938ef5954a7c3d5b86787eac600611c (diff)
lavfi: add a channels field to AVFilterLink.
Also: fix af_pan and af_aresample, that forgot to update audio->channels.
Diffstat (limited to 'libavfilter/avfilter.h')
-rw-r--r--libavfilter/avfilter.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/libavfilter/avfilter.h b/libavfilter/avfilter.h
index 50472451bc..5234a66201 100644
--- a/libavfilter/avfilter.h
+++ b/libavfilter/avfilter.h
@@ -699,6 +699,11 @@ struct AVFilterLink {
* filter.
*/
int closed;
+
+ /**
+ * Number of channels.
+ */
+ int channels;
};
/**
@@ -719,6 +724,11 @@ int avfilter_link(AVFilterContext *src, unsigned srcpad,
void avfilter_link_free(AVFilterLink **link);
/**
+ * Get the number of channels of a link.
+ */
+int avfilter_link_get_channels(AVFilterLink *link);
+
+/**
* Set the closed field of a link.
*/
void avfilter_link_set_closed(AVFilterLink *link, int closed);