Nothing uses it anymore. All options on all filters can now be set with normal AVOptions mechanisms, such as av_opt_set*().
Showing the changes to libavfilter (2 of 2 files). Show all
Unified · Split
| @@ -912,8 +912,6 @@ int avfilter_init_dict(AVFilterContext *ctx, AVDictionary **options) · 911 unmodified lines | ||
| 912 | 912 | |
| 913 | 913 | if (ctx->filter->init) |
| 914 | 914 | ret = ctx->filter->init(ctx); |
| 915 | − else if (ctx->filter->init_dict) | |
| 916 | − ret = ctx->filter->init_dict(ctx, options); | |
| 917 | 915 | if (ret < 0) |
| 918 | 916 | return ret; |
| 919 | 917 | |
| @@ -276,19 +276,6 @@ typedef struct AVFilter { · 275 unmodified lines | ||
| 276 | 276 | */ |
| 277 | 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 | 280 | * Filter uninitialization function. |
| 294 | 281 | * |