diff --git a/libavfilter/avfilter.h b/libavfilter/avfilter.h index 6de0f66ae0ef0383b92ef1635ce60049aca74839..b8d7cc39fd8030a89d10c5bcb4694eb7e1933896 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 52edb6b2708f115c5bf29bb747b76588b1277cb4..fb78a87de36d9080649e5485c37e02f46947330a 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) {