diff mbox series

[FFmpeg-devel,2/8] lavfi: remove AVFilter.init_dict()

Message ID 20230108125811.17967-2-anton@khirnov.net
State Accepted
Commit a7b1b4bc2324ceda830b273552014805192f574a
Headers show
Series [FFmpeg-devel,1/8] lavfi/vf_scale: allow passing options to swscale directly | expand

Checks

Context Check Description
yinshiyou/make_loongarch64 success Make finished
yinshiyou/make_fate_loongarch64 success Make fate finished
andriy/make_x86 success Make finished
andriy/make_fate_x86 success Make fate finished

Commit Message

Anton Khirnov Jan. 8, 2023, 12:58 p.m. UTC
Nothing uses it anymore.

All options on all filters can now be set with normal AVOptions
mechanisms, such as av_opt_set*().
---
 libavfilter/avfilter.c |  2 --
 libavfilter/avfilter.h | 13 -------------
 2 files changed, 15 deletions(-)
diff mbox series

Patch

diff --git a/libavfilter/avfilter.c b/libavfilter/avfilter.c
index cc5505e65b..e5dd0cfdb0 100644
--- a/libavfilter/avfilter.c
+++ b/libavfilter/avfilter.c
@@ -912,8 +912,6 @@  int avfilter_init_dict(AVFilterContext *ctx, AVDictionary **options)
 
     if (ctx->filter->init)
         ret = ctx->filter->init(ctx);
-    else if (ctx->filter->init_dict)
-        ret = ctx->filter->init_dict(ctx, options);
     if (ret < 0)
         return ret;
 
diff --git a/libavfilter/avfilter.h b/libavfilter/avfilter.h
index 6d68ebece4..c2ec7a4b5f 100644
--- a/libavfilter/avfilter.h
+++ b/libavfilter/avfilter.h
@@ -276,19 +276,6 @@  typedef struct AVFilter {
      */
     int (*init)(AVFilterContext *ctx);
 
-    /**
-     * Should be set instead of @ref AVFilter.init "init" by the filters that
-     * want to pass a dictionary of AVOptions to nested contexts that are
-     * allocated during init.
-     *
-     * On return, the options dict should be freed and replaced with one that
-     * contains all the options which could not be processed by this filter (or
-     * with NULL if all the options were processed).
-     *
-     * Otherwise the semantics is the same as for @ref AVFilter.init "init".
-     */
-    int (*init_dict)(AVFilterContext *ctx, AVDictionary **options);
-
     /**
      * Filter uninitialization function.
      *