[FFmpeg-cvslog] fftools/ffmpeg_filter: initialize the 'o' to silence the warning
Jun Zhao
git at videolan.org
Wed Mar 1 00:49:44 EET 2023
ffmpeg | branch: master | Jun Zhao <barryjzhao at tencent.com> | Sat Feb 25 21:54:00 2023 +0800| [a0a0a804998da8d1a397479c9bafeb000e6be088] | committer: Jun Zhao
fftools/ffmpeg_filter: initialize the 'o' to silence the warning
silence the warning: variable 'o' is used uninitialized whenever
'&&' condition is false
Signed-off-by: Jun Zhao <barryjzhao at tencent.com>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=a0a0a804998da8d1a397479c9bafeb000e6be088
---
fftools/ffmpeg_filter.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/fftools/ffmpeg_filter.c b/fftools/ffmpeg_filter.c
index 1f5bbf6c4d..3504a3cc0a 100644
--- a/fftools/ffmpeg_filter.c
+++ b/fftools/ffmpeg_filter.c
@@ -362,7 +362,7 @@ fail:
static int filter_opt_apply(AVFilterContext *f, const char *key, const char *val)
{
- const AVOption *o;
+ const AVOption *o = NULL;
int ret;
ret = av_opt_set(f, key, val, AV_OPT_SEARCH_CHILDREN);
More information about the ffmpeg-cvslog
mailing list