avfilter/vf_scale: use av_dict_iterate
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
parent
f8584c13f0
commit
1cf526c37a
@ -555,8 +555,8 @@ static int config_props(AVFilterLink *outlink)
|
|||||||
scale->out_range == AVCOL_RANGE_JPEG, 0);
|
scale->out_range == AVCOL_RANGE_JPEG, 0);
|
||||||
|
|
||||||
if (scale->opts) {
|
if (scale->opts) {
|
||||||
AVDictionaryEntry *e = NULL;
|
const AVDictionaryEntry *e = NULL;
|
||||||
while ((e = av_dict_get(scale->opts, "", e, AV_DICT_IGNORE_SUFFIX))) {
|
while ((e = av_dict_iterate(scale->opts, e))) {
|
||||||
if ((ret = av_opt_set(s, e->key, e->value, 0)) < 0)
|
if ((ret = av_opt_set(s, e->key, e->value, 0)) < 0)
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user