History

af_resample: switch to an AVOptions-based system.

Anton Khirnov committed 13 years ago

Commit 4fa1f521 parent b439c993 files · +53 −20Browse files

Showing the changes to libavfilter/avfilter.c (1 of 3 files). Show all

Unified · Split

libavfilter/avfilter.c+5−4
@@ -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);

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