diff options
author | Anton Khirnov <anton@khirnov.net> | 2013-02-25 12:12:36 +0100 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2013-03-16 05:33:23 +0100 |
commit | 42c7c61ab25809620b8c8809b3da73e25f5bbaaf (patch) | |
tree | 9cc267ffd8a0aad4e6fb50c04a6fa81bb6451bf2 /libavfilter/graphparser.c | |
parent | 556aab8f11b045a21182eee32413aa78d5c8539b (diff) | |
download | ffmpeg-42c7c61ab25809620b8c8809b3da73e25f5bbaaf.tar.gz |
avfiltergraph: replace AVFilterGraph.filter_count with nb_filters
This is more consistent with the naming in the rest of Libav.
Diffstat (limited to 'libavfilter/graphparser.c')
-rw-r--r-- | libavfilter/graphparser.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libavfilter/graphparser.c b/libavfilter/graphparser.c index d48828ea24..ea0a86d51a 100644 --- a/libavfilter/graphparser.c +++ b/libavfilter/graphparser.c @@ -435,8 +435,8 @@ int avfilter_graph_parse2(AVFilterGraph *graph, const char *filters, return 0; fail: - for (; graph->filter_count > 0; graph->filter_count--) - avfilter_free(graph->filters[graph->filter_count - 1]); + for (; graph->nb_filters > 0; graph->nb_filters--) + avfilter_free(graph->filters[graph->nb_filters - 1]); av_freep(&graph->filters); avfilter_inout_free(&open_inputs); avfilter_inout_free(&open_outputs); @@ -500,8 +500,8 @@ int avfilter_graph_parse(AVFilterGraph *graph, const char *filters, fail: if (ret < 0) { - for (; graph->filter_count > 0; graph->filter_count--) - avfilter_free(graph->filters[graph->filter_count - 1]); + for (; graph->nb_filters > 0; graph->nb_filters--) + avfilter_free(graph->filters[graph->nb_filters - 1]); av_freep(&graph->filters); } avfilter_inout_free(&inputs); |