summaryrefslogtreecommitdiff
path: root/fftools/ffmpeg_filter.c
diff options
context:
space:
mode:
authorJun Zhao <barryjzhao@tencent.com>2023-02-25 21:54:00 +0800
committerJun Zhao <barryjzhao@tencent.com>2023-03-01 06:49:13 +0800
commita0a0a804998da8d1a397479c9bafeb000e6be088 (patch)
tree98f07c4c07225daaded5f3078e54c049f5b9ca7a /fftools/ffmpeg_filter.c
parent3ff4a3d2ec5eacc0f3194f7cc8b526496d0b8b37 (diff)
downloadffmpeg-a0a0a804998da8d1a397479c9bafeb000e6be088.tar.gz
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@tencent.com>
Diffstat (limited to 'fftools/ffmpeg_filter.c')
-rw-r--r--fftools/ffmpeg_filter.c2
1 files changed, 1 insertions, 1 deletions
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);