diff options
author | Marvin Scholz <epirat07@gmail.com> | 2022-11-26 15:46:20 +0100 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2022-12-01 11:21:14 +0100 |
commit | e048d06621b9d74eba0a36298c8ab07d098f1278 (patch) | |
tree | 7dbdaee4c901a1524e42122cac2782bd36a15201 | |
parent | ece29ad0dcef10ef637919326de4cd91e62bc277 (diff) | |
download | ffmpeg-e048d06621b9d74eba0a36298c8ab07d098f1278.tar.gz |
avcodec/librav1e: use av_dict_iterate
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
-rw-r--r-- | libavcodec/librav1e.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/librav1e.c b/libavcodec/librav1e.c index 4f424caf5b..f48d5e0eb4 100644 --- a/libavcodec/librav1e.c +++ b/libavcodec/librav1e.c @@ -243,8 +243,8 @@ static av_cold int librav1e_encode_init(AVCodecContext *avctx) } { - AVDictionaryEntry *en = NULL; - while ((en = av_dict_get(ctx->rav1e_opts, "", en, AV_DICT_IGNORE_SUFFIX))) { + const AVDictionaryEntry *en = NULL; + while ((en = av_dict_iterate(ctx->rav1e_opts, en))) { int parse_ret = rav1e_config_parse(cfg, en->key, en->value); if (parse_ret < 0) av_log(avctx, AV_LOG_WARNING, "Invalid value for %s: %s.\n", en->key, en->value); |