History

lavfi: remove AVFilter.init_dict()

Nothing uses it anymore. All options on all filters can now be set with normal AVOptions mechanisms, such as av_opt_set*().

Anton Khirnov committed 3 years ago

Commit a7b1b4b1 parent 018a8b92 files · +0 −15Browse files

Unified · Split

2 files
  1. libavfilter/avfilter.c +0 −2
  2. libavfilter/avfilter.h +0 −13
libavfilter/avfilter.c+0−2
@@ -912,8 +912,6 @@ int avfilter_init_dict(AVFilterContext *ctx, AVDictionary **options) · 911 unmodified lines
912 912
913 if (ctx->filter->init)913 if (ctx->filter->init)
914 ret = ctx->filter->init(ctx);914 ret = ctx->filter->init(ctx);
915 else if (ctx->filter->init_dict)
916 ret = ctx->filter->init_dict(ctx, options);
917 if (ret < 0)915 if (ret < 0)
918 return ret;916 return ret;
919 917
libavfilter/avfilter.h+0−13
@@ -276,19 +276,6 @@ typedef struct AVFilter { · 275 unmodified lines
276 */276 */
277 int (*init)(AVFilterContext *ctx);277 int (*init)(AVFilterContext *ctx);
278 278
279 /**
280 * Should be set instead of @ref AVFilter.init "init" by the filters that
281 * want to pass a dictionary of AVOptions to nested contexts that are
282 * allocated during init.
283 *
284 * On return, the options dict should be freed and replaced with one that
285 * contains all the options which could not be processed by this filter (or
286 * with NULL if all the options were processed).
287 *
288 * Otherwise the semantics is the same as for @ref AVFilter.init "init".
289 */
290 int (*init_dict)(AVFilterContext *ctx, AVDictionary **options);
291
292 /**279 /**
293 * Filter uninitialization function.280 * Filter uninitialization function.
294 *281 *

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t