mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2026-06-16 04:32:47 +02:00
af_resample: switch to an AVOptions-based system.
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user