aboutsummaryrefslogtreecommitdiffstats
path: root/libavfilter/graphparser.c
diff options
context:
space:
mode:
authorStefano Sabatini <stefano.sabatini-lala@poste.it>2011-07-02 15:37:32 +0200
committerStefano Sabatini <stefano.sabatini-lala@poste.it>2011-07-10 18:00:50 +0200
commit2420763638bef385c8116a44ff5c0d2c15589494 (patch)
tree869af44d1dcc2349f7e70a208c74064af1e7e55f /libavfilter/graphparser.c
parent2f56a97f2488146f209de415e3338f7e597c5719 (diff)
downloadffmpeg-2420763638bef385c8116a44ff5c0d2c15589494.tar.gz
graphparser: simplify condition in avfilter_graph_parse()
Since avfilter_graph_parse() creates the "[in]" inout for the first unlabelled input pad, it is expected that it will create an "[out]" inout for last unlabelled output pad, even in the case where it cannot find any open input pad with that name. This change removes the check on the existence of an open input pad named "out", so it simplifies the checked condition while implementing a more intuitive behavior.
Diffstat (limited to 'libavfilter/graphparser.c')
-rw-r--r--libavfilter/graphparser.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavfilter/graphparser.c b/libavfilter/graphparser.c
index 111e5aa0db..9db7a4df94 100644
--- a/libavfilter/graphparser.c
+++ b/libavfilter/graphparser.c
@@ -389,7 +389,7 @@ int avfilter_graph_parse(AVFilterGraph *graph, const char *filters,
goto end;
}
- if (open_inputs && !strcmp(open_inputs->name, "out") && curr_inputs) {
+ if (curr_inputs) {
/* Last output pad, assume it is "[out]" if not specified */
const char *tmp = "[out]";
if ((ret = parse_outputs(&tmp, &curr_inputs, &open_inputs, &open_outputs,