lavfi: fix forgotten chunk in eb0f774d.
authorClément Bœsch <ubitux@gmail.com>
Fri, 12 Apr 2013 12:07:59 +0000 (14:07 +0200)
committerClément Bœsch <ubitux@gmail.com>
Fri, 12 Apr 2013 12:08:04 +0000 (14:08 +0200)
libavfilter/graphparser.c

index bd6863e..3718d09 100644 (file)
@@ -586,8 +586,8 @@ end:
     avfilter_inout_free(&curr_inputs);
 
     if (ret < 0) {
-        for (; graph->nb_filters > 0; graph->nb_filters--)
-            avfilter_free(graph->filters[graph->nb_filters - 1]);
+        while (graph->nb_filters)
+            avfilter_free(graph->filters[0]);
         av_freep(&graph->filters);
     }
     return ret;