[FFmpeg-cvslog] fftools/ffmpeg_filter: silence valgrind warning

Paul B Mahol git at videolan.org
Wed Aug 25 23:55:54 EEST 2021


ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Tue Aug 24 09:24:55 2021 +0200| [8cbed82b2aaebe98ac4f89555eab17e5e21d9f51] | committer: Paul B Mahol

fftools/ffmpeg_filter: silence valgrind warning

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

 fftools/ffmpeg_filter.c | 9 +++++----
 1 file 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;



More information about the ffmpeg-cvslog mailing list