The new name is shorter and more consistent with the FFmpeg API, and sounds less evil. Originally committed as revision 25707 to svn://svn.ffmpeg.org/ffmpeg/trunk
Showing the changes to libavfilter/avfiltergraph.c (1 of 6 files). Show all
Unified · Split
| @@ -34,7 +34,7 @@ AVFilterGraph *avfilter_graph_alloc(void) · 33 unmodified lines | |||
| 34 | void avfilter_graph_free(AVFilterGraph *graph) | 34 | void avfilter_graph_free(AVFilterGraph *graph) |
| 35 | { | 35 | { |
| 36 | for(; graph->filter_count > 0; graph->filter_count --) | 36 | for(; graph->filter_count > 0; graph->filter_count --) |
| 37 | avfilter_destroy(graph->filters[graph->filter_count - 1]); | 37 | avfilter_free(graph->filters[graph->filter_count - 1]); |
| 38 | av_freep(&graph->scale_sws_opts); | 38 | av_freep(&graph->scale_sws_opts); |
| 39 | av_freep(&graph->filters); | 39 | av_freep(&graph->filters); |
| 40 | } | 40 | } |
| @@ -143,7 +143,7 @@ static int query_formats(AVFilterGraph *graph, AVClass *log_ctx) · 102 unmodified lines | |||
| 143 | snprintf(scale_args, sizeof(scale_args), "0:0:%s", graph->scale_sws_opts); | 143 | snprintf(scale_args, sizeof(scale_args), "0:0:%s", graph->scale_sws_opts); |
| 144 | if(!scale || scale->filter->init(scale, scale_args, NULL) || | 144 | if(!scale || scale->filter->init(scale, scale_args, NULL) || |
| 145 | avfilter_insert_filter(link, scale, 0, 0)) { | 145 | avfilter_insert_filter(link, scale, 0, 0)) { |
| 146 | avfilter_destroy(scale); | 146 | avfilter_free(scale); |
| 147 | return -1; | 147 | return -1; |
| 148 | } | 148 | } |
| 149 | 149 | ||