diff options
author | Paul B Mahol <onemda@gmail.com> | 2021-08-24 09:24:55 +0200 |
---|---|---|
committer | Paul B Mahol <onemda@gmail.com> | 2021-08-25 22:51:32 +0200 |
commit | 8cbed82b2aaebe98ac4f89555eab17e5e21d9f51 (patch) | |
tree | f1ffa9e1a3b00b8d18e21dd8a8037976924028ab | |
parent | 507fdcd1b09deed0cfd274d6afb284a99963168f (diff) | |
download | ffmpeg-8cbed82b2aaebe98ac4f89555eab17e5e21d9f51.tar.gz |
fftools/ffmpeg_filter: silence valgrind warning
-rw-r--r-- | fftools/ffmpeg_filter.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/fftools/ffmpeg_filter.c b/fftools/ffmpeg_filter.c index 49076f13ee..b3f230e8b6 100644 --- a/fftools/ffmpeg_filter.c +++ b/fftools/ffmpeg_filter.c @@ -975,12 +975,13 @@ int configure_filtergraph(FilterGraph *fg) AV_DICT_IGNORE_SUFFIX))) { av_strlcatf(args, sizeof(args), "%s=%s:", e->key, e->value); } - if (strlen(args)) + if (strlen(args)) { args[strlen(args)-1] = 0; - if (!strncmp(args, "sws_flags=", 10)) { - // keep the 'flags=' part - fg->graph->scale_sws_opts = av_strdup(args+4); + if (!strncmp(args, "sws_flags=", 10)) { + // keep the 'flags=' part + fg->graph->scale_sws_opts = av_strdup(args+4); + } } args[0] = 0; |