Commit 6b5ec762 authored by Clément Bœsch's avatar Clément Bœsch

lavfi: fix forgotten chunk in eb0f774d.

parent 0acf7e26
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment