summaryrefslogtreecommitdiff
path: root/libavfilter
diff options
context:
space:
mode:
Diffstat (limited to 'libavfilter')
-rw-r--r--libavfilter/graphparser.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/libavfilter/graphparser.c b/libavfilter/graphparser.c
index 49a8bb1569..7c19dbbdc8 100644
--- a/libavfilter/graphparser.c
+++ b/libavfilter/graphparser.c
@@ -263,12 +263,13 @@ int avfilter_parse_graph(AVFilterGraph *graph, const char *filters,
AVFilterContext *last_filt = NULL;
- consume_whitespace(&filters);
-
do {
AVFilterContext *filter;
int oldpad = pad;
- const char *inouts = filters;
+ const char *inouts;
+
+ consume_whitespace(&filters);
+ inouts = filters;
// We need to parse the inputs of the filter after we create it, so
// skip it by now
@@ -295,6 +296,9 @@ int avfilter_parse_graph(AVFilterGraph *graph, const char *filters,
}
pad = parse_inouts(&filters, &inout, 0, LinkTypeOut, filter);
+
+ consume_whitespace(&filters);
+
chr = *filters++;
index++;
last_filt = filter;