Originally committed as revision 19066 to svn://svn.ffmpeg.org/ffmpeg/trunk
Unified · Split
| @@ -77,6 +77,23 @@ int avfilter_graph_check_validity(AVFilterGraph *graph, AVClass *log_ctx) · 76 unmodified lines | ||
| 77 | 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 | 97 | AVFilterContext *avfilter_graph_get_filter(AVFilterGraph *graph, char *name) |
| 81 | 98 | { |
| 82 | 99 | int i; |
| @@ -56,6 +56,13 @@ int avfilter_graph_add_filter(AVFilterGraph *graphctx, AVFilterContext *filter); · 55 unmodified lines | ||
| 56 | 56 | */ |
| 57 | 57 | int avfilter_graph_check_validity(AVFilterGraph *graphctx, AVClass *log_ctx); |
| 58 | 58 | |
| 59 | +/** | |
| 60 | + * Configures all the links of graphctx. | |
| 61 | + * | |
| 62 | + * @return 0 in case of success, a negative value otherwise | |
| 63 | + */ | |
| 64 | +int avfilter_graph_config_links(AVFilterGraph *graphctx, AVClass *log_ctx); | |
| 65 | + | |
| 59 | 66 | /** |
| 60 | 67 | * Configures the formats of all the links in the graph. |
| 61 | 68 | */ |