diff options
author | Vitor Sessak <vitor1001@gmail.com> | 2008-02-15 21:58:29 +0000 |
---|---|---|
committer | Vitor Sessak <vitor1001@gmail.com> | 2008-02-15 21:58:29 +0000 |
commit | f66f53dac8094df199c0fc77818bdb6b50571529 (patch) | |
tree | 43a9778d5d1862c18eded096df865e545243df93 /libavfilter/defaults.c | |
parent | bf4ce7a364fc53b71db367e3b64c8202acf1e584 (diff) | |
download | ffmpeg-f66f53dac8094df199c0fc77818bdb6b50571529.tar.gz |
Separate the process of creating links between filters from that of configuring
the links.
Commited in SoC by Bobby Bingham on 2007-08-07 21:02:18
Originally committed as revision 12064 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavfilter/defaults.c')
-rw-r--r-- | libavfilter/defaults.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/libavfilter/defaults.c b/libavfilter/defaults.c index 570d21defd..9976560106 100644 --- a/libavfilter/defaults.c +++ b/libavfilter/defaults.c @@ -104,6 +104,16 @@ int avfilter_default_config_output_link(AVFilterLink *link) } /** + * default config_link() implementation for input video links to simplify + * the implementation of one input one output video filters */ +int avfilter_default_config_input_link(AVFilterLink *link) +{ + if(!link->dst->output_count) + return 0; + return avfilter_config_link(link->dst->outputs[0]); +} + +/** * default query_formats() implementation for output video links to simplify * the implementation of one input one output video filters */ int *avfilter_default_query_output_formats(AVFilterLink *link) |