mirror of
https://github.com/nyanmisaka/ffmpeg-rockchip.git
synced 2026-01-23 23:21:06 +01:00
Merge commit '1565cbc65c'
* commit '1565cbc65c':
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:
commit
eb0f774d4b
5 changed files with 32 additions and 10 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue