Merge commit '1565cbc65cbb9f95c11367314a080068895e0cf0'
* commit '1565cbc65cbb9f95c11367314a080068895e0cf0': lavfi: make avfilter_free() remove the filter from its graph. Conflicts: libavfilter/avfilter.c libavfilter/avfiltergraph.c libavfilter/graphparser.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
@@ -430,8 +430,8 @@ int avfilter_graph_parse2(AVFilterGraph *graph, const char *filters,
|
||||
return 0;
|
||||
|
||||
fail:end:
|
||||
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);
|
||||
avfilter_inout_free(&open_inputs);
|
||||
avfilter_inout_free(&open_outputs);
|
||||
@@ -498,8 +498,8 @@ int avfilter_graph_parse(AVFilterGraph *graph, const char *filters,
|
||||
|
||||
fail:
|
||||
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);
|
||||
}
|
||||
avfilter_inout_free(&inputs);
|
||||
|
Reference in New Issue
Block a user