Showing the changes to libavfilter/avfilter.c (1 of 3 files). Show all
Unified · Split
| @@ -501,11 +501,12 @@ int avfilter_init_filter(AVFilterContext *filter, const char *args, void *opaque · 500 unmodified lines | |||
| 501 | } | 501 | } |
| 502 | } | 502 | } |
| 503 | 503 | ||
| 504 | if (filter->filter->init) { | 504 | if (filter->filter->init) |
| 505 | ret = filter->filter->init(filter, args); | 505 | ret = filter->filter->init(filter, args); |
| 506 | if (ret < 0) | 506 | else if (filter->filter->init_dict) |
| 507 | goto fail; | 507 | ret = filter->filter->init_dict(filter, &options); |
| 508 | } | 508 | if (ret < 0) |
| 509 | goto fail; | ||
| 509 | 510 | ||
| 510 | if ((e = av_dict_get(options, "", NULL, AV_DICT_IGNORE_SUFFIX))) { | 511 | if ((e = av_dict_get(options, "", NULL, AV_DICT_IGNORE_SUFFIX))) { |
| 511 | av_log(filter, AV_LOG_ERROR, "No such option: %s.\n", e->key); | 512 | av_log(filter, AV_LOG_ERROR, "No such option: %s.\n", e->key); |