History

Implement avfilter_graph_config_links().

Originally committed as revision 19066 to svn://svn.ffmpeg.org/ffmpeg/trunk

Stefano Sabatini committed 17 years ago

Commit 4ec42241 parent c70ac8e2 files · +24 −0Browse files

Unified · Split

2 files
  1. libavfilter/avfiltergraph.c +17 −0
  2. libavfilter/avfiltergraph.h +7 −0
libavfilter/avfiltergraph.c+17−0
@@ -77,6 +77,23 @@ int avfilter_graph_check_validity(AVFilterGraph *graph, AVClass *log_ctx) · 76 unmodified lines
7777 return 0;
7878 }
7979
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+
8097 AVFilterContext *avfilter_graph_get_filter(AVFilterGraph *graph, char *name)
8198 {
8299 int i;
libavfilter/avfiltergraph.h+7−0
@@ -56,6 +56,13 @@ int avfilter_graph_add_filter(AVFilterGraph *graphctx, AVFilterContext *filter); · 55 unmodified lines
5656 */
5757 int avfilter_graph_check_validity(AVFilterGraph *graphctx, AVClass *log_ctx);
5858
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+
5966 /**
6067 * Configures the formats of all the links in the graph.
6168 */

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t