mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2026-02-04 14:30:55 +08:00
lavfi: Drop deprecated functions to open a filter or a filterchain
Deprecated in 03/2013.
This commit is contained in:
@@ -116,23 +116,6 @@ void avfilter_graph_free(AVFilterGraph **graph)
|
||||
av_freep(graph);
|
||||
}
|
||||
|
||||
#if FF_API_AVFILTER_OPEN
|
||||
int avfilter_graph_add_filter(AVFilterGraph *graph, AVFilterContext *filter)
|
||||
{
|
||||
AVFilterContext **filters = av_realloc(graph->filters,
|
||||
sizeof(*filters) * (graph->nb_filters + 1));
|
||||
if (!filters)
|
||||
return AVERROR(ENOMEM);
|
||||
|
||||
graph->filters = filters;
|
||||
graph->filters[graph->nb_filters++] = filter;
|
||||
|
||||
filter->graph = graph;
|
||||
|
||||
return 0;
|
||||
}
|
||||
#endif
|
||||
|
||||
int avfilter_graph_create_filter(AVFilterContext **filt_ctx, const AVFilter *filt,
|
||||
const char *name, const char *args, void *opaque,
|
||||
AVFilterGraph *graph_ctx)
|
||||
|
||||
Reference in New Issue
Block a user