Showing the changes to libavfilter (1 of 9 files). Show all
Unified · Split
| @@ -941,7 +941,7 @@ int avfilter_init_dict(AVFilterContext *ctx, AVDictionary **options) · 940 unmodified lines | ||
| 941 | 941 | int avfilter_init_str(AVFilterContext *filter, const char *args) |
| 942 | 942 | { |
| 943 | 943 | AVDictionary *options = NULL; |
| 944 | − AVDictionaryEntry *e; | |
| 944 | + const AVDictionaryEntry *e; | |
| 945 | 945 | int ret = 0; |
| 946 | 946 | |
| 947 | 947 | if (args && *args) { |
| @@ -954,7 +954,7 @@ int avfilter_init_str(AVFilterContext *filter, const char *args) · 6 unmodified lines | ||
| 954 | 954 | if (ret < 0) |
| 955 | 955 | goto fail; |
| 956 | 956 | |
| 957 | − if ((e = av_dict_get(options, "", NULL, AV_DICT_IGNORE_SUFFIX))) { | |
| 957 | + if ((e = av_dict_iterate(options, NULL))) { | |
| 958 | 958 | av_log(filter, AV_LOG_ERROR, "No such option: %s.\n", e->key); |
| 959 | 959 | ret = AVERROR_OPTION_NOT_FOUND; |
| 960 | 960 | goto fail; |