[FFmpeg-cvslog] lavu/opt: properly initialize av_opt_set_array return value

Timo Rothenpieler git at videolan.org
Sat Sep 7 21:22:41 EEST 2024


ffmpeg | branch: master | Timo Rothenpieler <timo at rothenpieler.org> | Sat Sep  7 20:21:01 2024 +0200| [7e35aeda03e7feb0ec32b7da63f5091047a9cefe] | committer: Timo Rothenpieler

lavu/opt: properly initialize av_opt_set_array return value

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=7e35aeda03e7feb0ec32b7da63f5091047a9cefe
---

 libavutil/opt.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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)



More information about the ffmpeg-cvslog mailing list