avcodec/librav1e: remove unnecessary variable

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
Marvin Scholz 2022-11-26 15:46:21 +01:00 committed by Andreas Rheinhardt
parent e048d06621
commit 5b13238ce0
1 changed files with 1 additions and 2 deletions

View File

@ -245,8 +245,7 @@ static av_cold int librav1e_encode_init(AVCodecContext *avctx)
{
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)
if (rav1e_config_parse(cfg, en->key, en->value) < 0)
av_log(avctx, AV_LOG_WARNING, "Invalid value for %s: %s.\n", en->key, en->value);
}
}