summaryrefslogtreecommitdiff
path: root/libavfilter/graphparser.c
diff options
context:
space:
mode:
authorClément Bœsch <ubitux@gmail.com>2013-04-12 14:07:59 +0200
committerClément Bœsch <ubitux@gmail.com>2013-04-12 14:08:04 +0200
commit6b5ec762830d2984da8d5cc4e3edd20899b9f45a (patch)
treeab499afe6dd9c656a96658142fd290ab307e2c29 /libavfilter/graphparser.c
parent0acf7e268b2f873379cd854b4d5aaba6f9c1f0b5 (diff)
lavfi: fix forgotten chunk in eb0f774d.
Diffstat (limited to 'libavfilter/graphparser.c')
-rw-r--r--libavfilter/graphparser.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavfilter/graphparser.c b/libavfilter/graphparser.c
index bd6863e92f..3718d09c99 100644
--- a/libavfilter/graphparser.c
+++ b/libavfilter/graphparser.c
@@ -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;