diff mbox series

[FFmpeg-devel,11/17] lavu/opt: add missing 'else'

Message ID 20240926161901.31421-1-anton@khirnov.net
State New
Headers show
Series [FFmpeg-devel,01/10] fftools/ffmpeg_filter: stop using avfilter_graph_alloc_filter() incorrectly | expand

Checks

Context Check Description
andriy/make_x86 success Make finished
andriy/make_fate_x86 success Make fate finished

Commit Message

Anton Khirnov Sept. 26, 2024, 4:18 p.m. UTC
---
 libavutil/opt.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/libavutil/opt.c b/libavutil/opt.c
index 45db4f484f..02ed9d9fe9 100644
--- a/libavutil/opt.c
+++ b/libavutil/opt.c
@@ -2362,7 +2362,7 @@  int av_opt_set_array(void *obj, const char *name, int search_flags,
             ret = opt_set_elem(obj, target_obj, o, *(const char **)src, dst);
             if (ret < 0)
                 goto fail;
-        } if (val_type == AV_OPT_TYPE_INT      ||
+        } else if (val_type == AV_OPT_TYPE_INT ||
               val_type == AV_OPT_TYPE_INT64    ||
               val_type == AV_OPT_TYPE_FLOAT    ||
               val_type == AV_OPT_TYPE_DOUBLE   ||