Originally committed as revision 19066 to svn://svn.ffmpeg.org/ffmpeg/trunk
Showing the changes to libavfilter/avfiltergraph.c (1 of 2 files). Show all
Unified · Split
| @@ -77,6 +77,23 @@ int avfilter_graph_check_validity(AVFilterGraph *graph, AVClass *log_ctx) · 76 unmodified lines | |||
| 77 | return 0; | 77 | return 0; |
| 78 | } | 78 | } |
| 79 | 79 | ||
| 80 | int avfilter_graph_config_links(AVFilterGraph *graph, AVClass *log_ctx) | ||
| 81 | { | ||
| 82 | AVFilterContext *filt; | ||
| 83 | int i, ret; | ||
| 84 | |||
| 85 | for (i=0; i < graph->filter_count; i++) { | ||
| 86 | filt = graph->filters[i]; | ||
| 87 | |||
| 88 | if (!filt->output_count) { | ||
| 89 | if ((ret = avfilter_config_links(filt))) | ||
| 90 | return ret; | ||
| 91 | } | ||
| 92 | } | ||
| 93 | |||
| 94 | return 0; | ||
| 95 | } | ||
| 96 | |||
| 80 | AVFilterContext *avfilter_graph_get_filter(AVFilterGraph *graph, char *name) | 97 | AVFilterContext *avfilter_graph_get_filter(AVFilterGraph *graph, char *name) |
| 81 | { | 98 | { |
| 82 | int i; | 99 | int i; |