diff --git a/libavfilter/avfilter.h b/libavfilter/avfilter.h index 6de0f66ae0..b8d7cc39fd 100644 --- a/libavfilter/avfilter.h +++ b/libavfilter/avfilter.h @@ -1242,7 +1242,7 @@ int avfilter_graph_add_filter(AVFilterGraph *graphctx, AVFilterContext *filter); * @return a negative AVERROR error code in case of failure, a non * negative value otherwise */ -int avfilter_graph_create_filter(AVFilterContext **filt_ctx, AVFilter *filt, +int avfilter_graph_create_filter(AVFilterContext **filt_ctx, const AVFilter *filt, const char *name, const char *args, void *opaque, AVFilterGraph *graph_ctx); diff --git a/libavfilter/avfiltergraph.c b/libavfilter/avfiltergraph.c index 52edb6b270..fb78a87de3 100644 --- a/libavfilter/avfiltergraph.c +++ b/libavfilter/avfiltergraph.c @@ -148,7 +148,7 @@ FF_ENABLE_DEPRECATION_WARNINGS } #endif -int avfilter_graph_create_filter(AVFilterContext **filt_ctx, AVFilter *filt, +int avfilter_graph_create_filter(AVFilterContext **filt_ctx, const AVFilter *filt, const char *name, const char *args, void *opaque, AVFilterGraph *graph_ctx) {