af_resample: switch to an AVOptions-based system.

This commit is contained in:
Anton Khirnov
2013-02-25 21:21:29 +01:00
parent b439c992c2
commit 4fa1f52e33
3 changed files with 53 additions and 20 deletions
+5 -4
View File
@@ -501,11 +501,12 @@ int avfilter_init_filter(AVFilterContext *filter, const char *args, void *opaque
}
}
if (filter->filter->init) {
if (filter->filter->init)
ret = filter->filter->init(filter, args);
if (ret < 0)
goto fail;
}
else if (filter->filter->init_dict)
ret = filter->filter->init_dict(filter, &options);
if (ret < 0)
goto fail;
if ((e = av_dict_get(options, "", NULL, AV_DICT_IGNORE_SUFFIX))) {
av_log(filter, AV_LOG_ERROR, "No such option: %s.\n", e->key);