[FFmpeg-cvslog] r19066 - in trunk/libavfilter: avfiltergraph.c avfiltergraph.h
stefano
subversion
Sun May 31 18:30:12 CEST 2009
Author: stefano
Date: Sun May 31 18:30:12 2009
New Revision: 19066
Log:
Implement avfilter_graph_config_links().
Modified:
trunk/libavfilter/avfiltergraph.c
trunk/libavfilter/avfiltergraph.h
Modified: trunk/libavfilter/avfiltergraph.c
==============================================================================
--- trunk/libavfilter/avfiltergraph.c Sun May 31 13:50:30 2009 (r19065)
+++ trunk/libavfilter/avfiltergraph.c Sun May 31 18:30:12 2009 (r19066)
@@ -77,6 +77,23 @@ int avfilter_graph_check_validity(AVFilt
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;
Modified: trunk/libavfilter/avfiltergraph.h
==============================================================================
--- trunk/libavfilter/avfiltergraph.h Sun May 31 13:50:30 2009 (r19065)
+++ trunk/libavfilter/avfiltergraph.h Sun May 31 18:30:12 2009 (r19066)
@@ -57,6 +57,13 @@ int avfilter_graph_add_filter(AVFilterGr
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.
*/
int avfilter_graph_config_formats(AVFilterGraph *graphctx);
More information about the ffmpeg-cvslog
mailing list