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:
parent
a9275b4f69
commit
238edd2fe3
6 changed files with 22 additions and 2 deletions
|
|
@ -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.
|
||||
*/
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue