Since this function adds a standalone filter to a filter graph and we do not support creating such filters, there is no reason for this function to exist.
Showing the changes to libavfilter/avfiltergraph.c (1 of 3 files). Show all
Unified · Split
| @@ -58,6 +58,7 @@ void avfilter_graph_free(AVFilterGraph **graph) · 57 unmodified lines | ||
| 58 | 58 | av_freep(graph); |
| 59 | 59 | } |
| 60 | 60 | |
| 61 | +#if FF_API_AVFILTER_OPEN | |
| 61 | 62 | int avfilter_graph_add_filter(AVFilterGraph *graph, AVFilterContext *filter) |
| 62 | 63 | { |
| 63 | 64 | AVFilterContext **filters = av_realloc(graph->filters, |
| @@ -74,6 +75,7 @@ int avfilter_graph_add_filter(AVFilterGraph *graph, AVFilterContext *filter) · 10 unmodified lines | ||
| 74 | 75 | |
| 75 | 76 | return 0; |
| 76 | 77 | } |
| 78 | +#endif | |
| 77 | 79 | |
| 78 | 80 | int avfilter_graph_create_filter(AVFilterContext **filt_ctx, AVFilter *filt, |
| 79 | 81 | const char *name, const char *args, void *opaque, |