avcodec/librav1e: use av_dict_iterate

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
Marvin Scholz 2022-11-26 15:46:20 +01:00 committed by Andreas Rheinhardt
parent ece29ad0dc
commit e048d06621

View File

@ -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);