Commit b6984357 authored by stefano's avatar stefano

Implement avfilter_graph_config_links().


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@19066 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 631fa3c6
......@@ -77,6 +77,23 @@ int avfilter_graph_check_validity(AVFilterGraph *graph, AVClass *log_ctx)
return 0;
}
int avfilter_graph_config_links(AVFilterGraph *graph, AVClass *log_ctx)
{
AVFilterContext *filt;
int i, ret;
for (i=0; i < graph->filter_count; i++) {
filt = graph->filters[i];
if (!filt->output_count) {
if ((ret = avfilter_config_links(filt)))
return ret;
}
}
return 0;
}
AVFilterContext *avfilter_graph_get_filter(AVFilterGraph *graph, char *name)
{
int i;
......
......@@ -56,6 +56,13 @@ int avfilter_graph_add_filter(AVFilterGraph *graphctx, AVFilterContext *filter);
*/
int avfilter_graph_check_validity(AVFilterGraph *graphctx, AVClass *log_ctx);
/**
* Configures all the links of graphctx.
*
* @return 0 in case of success, a negative value otherwise
*/
int avfilter_graph_config_links(AVFilterGraph *graphctx, AVClass *log_ctx);
/**
* Configures the formats of all the links in the graph.
*/
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment