diff options
Diffstat (limited to 'libavfilter/graphparser.c')
-rw-r--r-- | libavfilter/graphparser.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavfilter/graphparser.c b/libavfilter/graphparser.c index 3d002abd0e..dbfcc952f1 100644 --- a/libavfilter/graphparser.c +++ b/libavfilter/graphparser.c @@ -307,8 +307,8 @@ int avfilter_parse_graph(AVFilterGraph *graph, const char *filters, } while (chr == ',' || chr == ';'); head = inout; - for (; inout != NULL; inout = inout->next) { - if(inout->filter == NULL) + for (; inout; inout = inout->next) { + if(!inout->filter) continue; // Already processed if(!strcmp(inout->name, "in")) { |