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
77 return 0;77 return 0;
78}78}
79 79
80int 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
80AVFilterContext *avfilter_graph_get_filter(AVFilterGraph *graph, char *name)97AVFilterContext *avfilter_graph_get_filter(AVFilterGraph *graph, char *name)
81{98{
82 int i;99 int i;
libavfilter/avfiltergraph.h+7−0
@@ -56,6 +56,13 @@ int avfilter_graph_add_filter(AVFilterGraph *graphctx, AVFilterContext *filter); · 55 unmodified lines
56 */56 */
57int avfilter_graph_check_validity(AVFilterGraph *graphctx, AVClass *log_ctx);57int 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 */
64int avfilter_graph_config_links(AVFilterGraph *graphctx, AVClass *log_ctx);
65
59/**66/**
60 * Configures the formats of all the links in the graph.67 * Configures the formats of all the links in the graph.
61 */68 */

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