aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTimo Rothenpieler <timo@rothenpieler.org>2024-09-07 20:21:01 +0200
committerTimo Rothenpieler <timo@rothenpieler.org>2024-09-07 20:21:01 +0200
commit7e35aeda03e7feb0ec32b7da63f5091047a9cefe (patch)
treee75e75218df1cbc6e194b254ec461bdd6003cd30
parentc0666d8bedfb8bd242ea2a9fe2bd3e5a1addc0a5 (diff)
downloadffmpeg-7e35aeda03e7feb0ec32b7da63f5091047a9cefe.tar.gz
lavu/opt: properly initialize av_opt_set_array return value
-rw-r--r--libavutil/opt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavutil/opt.c b/libavutil/opt.c
index d2af76478c..a690d839a4 100644
--- a/libavutil/opt.c
+++ b/libavutil/opt.c
@@ -2260,7 +2260,7 @@ int av_opt_set_array(void *obj, const char *name, int search_flags,
unsigned *array_size, new_size;
size_t elem_size;
- int ret;
+ int ret = 0;
o = av_opt_find2(obj, name, NULL, 0, search_flags, &target_obj);
if (!o || !target_obj)