Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
AVDictionaryEntry *e = NULL;
while ((e = av_dict_get(*opts, "", e, AV_DICT_IGNORE_SUFFIX))) {
- const char *token = e->key;
- const char *value = e->value;
- if ((ret = av_opt_set(aresample->swr, token, value, 0)) < 0)
+ if ((ret = av_opt_set(aresample->swr, e->key, e->value, 0)) < 0)
goto end;
}
av_dict_free(opts);
AVDictionaryEntry *e = NULL;
while ((e = av_dict_get(scale->opts, "", e, AV_DICT_IGNORE_SUFFIX))) {
- const char *token = e->key;
- const char *value = e->value;
- if ((ret = av_opt_set(*s, token, value, 0)) < 0)
+ if ((ret = av_opt_set(*s, e->key, e->value, 0)) < 0)
return ret;
}
}