History

Merge commit '42c7c61ab25809620b8c8809b3da73e25f5bbaaf'

* commit '42c7c61ab25809620b8c8809b3da73e25f5bbaaf': avfiltergraph: replace AVFilterGraph.filter_count with nb_filters Conflicts: doc/APIchanges libavfilter/avfiltergraph.c libavfilter/avfiltergraph.h libavfilter/graphparser.c libavfilter/version.h

Michael Niedermayer committed 13 years ago

Commit ecade982 parents 8a0187e 42c7c617 files · +42 −30Browse files

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

Unified · Split

libavfilter/graphparser.c+6−6
@@ -436,8 +436,8 @@ int avfilter_graph_parse2(AVFilterGraph *graph, const char *filters, · 435 unmodified lines
436436 return 0;
437437
438438 fail:end:
439− for (; graph->filter_count > 0; graph->filter_count--)
440− avfilter_free(graph->filters[graph->filter_count - 1]);
439+ for (; graph->nb_filters > 0; graph->nb_filters--)
440+ avfilter_free(graph->filters[graph->nb_filters - 1]);
441441 av_freep(&graph->filters);
442442 avfilter_inout_free(&open_inputs);
443443 avfilter_inout_free(&open_outputs);
@@ -504,8 +504,8 @@ int avfilter_graph_parse(AVFilterGraph *graph, const char *filters, · 60 unmodified lines
504504
505505 fail:
506506 if (ret < 0) {
507− for (; graph->filter_count > 0; graph->filter_count--)
508− avfilter_free(graph->filters[graph->filter_count - 1]);
507+ for (; graph->nb_filters > 0; graph->nb_filters--)
508+ avfilter_free(graph->filters[graph->nb_filters - 1]);
509509 av_freep(&graph->filters);
510510 }
511511 avfilter_inout_free(&inputs);
@@ -591,8 +591,8 @@ end: · 79 unmodified lines
591591 avfilter_inout_free(&curr_inputs);
592592
593593 if (ret < 0) {
594− for (; graph->filter_count > 0; graph->filter_count--)
595− avfilter_free(graph->filters[graph->filter_count - 1]);
594+ for (; graph->nb_filters > 0; graph->nb_filters--)
595+ avfilter_free(graph->filters[graph->nb_filters - 1]);
596596 av_freep(&graph->filters);
597597 }
598598 return ret;

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