diff mbox series

[FFmpeg-devel,v2,04/31] avcodec/librav1e: remove unnecessary variable

Message ID 20221126144648.73162-5-epirat07@gmail.com
State New
Headers show
Series Use av_dict_iterate where approproate | expand

Checks

Context Check Description
yinshiyou/make_loongarch64 success Make finished
yinshiyou/make_fate_loongarch64 success Make fate finished
andriy/make_x86 success Make finished
andriy/make_fate_x86 success Make fate finished

Commit Message

Marvin Scholz Nov. 26, 2022, 2:46 p.m. UTC
---
 libavcodec/librav1e.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
diff mbox series

Patch

diff --git a/libavcodec/librav1e.c b/libavcodec/librav1e.c
index f48d5e0eb4..3481b7637d 100644
--- a/libavcodec/librav1e.c
+++ b/libavcodec/librav1e.c
@@ -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);
         }
     }