lavfi: add a channels field to AVFilterLink.

Also: fix af_pan and af_aresample, that forgot to update
audio->channels.
This commit is contained in:
Nicolas George 2012-12-02 16:31:15 +01:00
parent a9275b4f69
commit 238edd2fe3
6 changed files with 22 additions and 2 deletions

View file

@ -699,6 +699,11 @@ struct AVFilterLink {
* filter.
*/
int closed;
/**
* Number of channels.
*/
int channels;
};
/**
@ -718,6 +723,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.
*/