History

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

Michael Niedermayer committed 13 years ago

Commit eb0f7742 parents 4fde705 1565cbc5 files · +32 −10Browse files

Showing the changes to libavfilter/graphparser.c (1 of 5 files). Show all

Unified · Split

libavfilter/graphparser.c+4−4
@@ -430,8 +430,8 @@ int avfilter_graph_parse2(AVFilterGraph *graph, const char *filters, · 429 unmodified lines
430430 return 0;
431431
432432 fail:end:
433− for (; graph->nb_filters > 0; graph->nb_filters--)
434− avfilter_free(graph->filters[graph->nb_filters - 1]);
433+ while (graph->nb_filters)
434+ avfilter_free(graph->filters[0]);
435435 av_freep(&graph->filters);
436436 avfilter_inout_free(&open_inputs);
437437 avfilter_inout_free(&open_outputs);
@@ -498,8 +498,8 @@ int avfilter_graph_parse(AVFilterGraph *graph, const char *filters, · 60 unmodified lines
498498
499499 fail:
500500 if (ret < 0) {
501− for (; graph->nb_filters > 0; graph->nb_filters--)
502− avfilter_free(graph->filters[graph->nb_filters - 1]);
501+ while (graph->nb_filters)
502+ avfilter_free(graph->filters[0]);
503503 av_freep(&graph->filters);
504504 }
505505 avfilter_inout_free(&inputs);

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t