diff --git a/libavutil/opt.c b/libavutil/opt.c index 5dd84e4201..a367dbbbcb 100644 --- a/libavutil/opt.c +++ b/libavutil/opt.c @@ -254,7 +254,7 @@ int av_set_string3(void *obj, const char *name, const char *val, int alloc, cons int av_opt_set(void *obj, const char *name, const char *val, int search_flags) { - int ret; + int ret = 0; void *dst, *target_obj; const AVOption *o = av_opt_find2(obj, name, NULL, 0, search_flags, &target_obj); if (!o || !target_obj)