Browse Source

Implement avfilter_graph_config_links().

Originally committed as revision 19066 to svn://svn.ffmpeg.org/ffmpeg/trunk
tags/v0.6
Stefano Sabatini 16 years ago
parent
commit
4ec42240ca
2 changed files with 24 additions and 0 deletions
  1. +17
    -0
      libavfilter/avfiltergraph.c
  2. +7
    -0
      libavfilter/avfiltergraph.h

+ 17
- 0
libavfilter/avfiltergraph.c View File

@@ -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;


+ 7
- 0
libavfilter/avfiltergraph.h View File

@@ -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.
*/


Loading…
Cancel
Save