[FFmpeg-cvslog] fftools/cmdutils: Use %c, not %s to write a single char

Andreas Rheinhardt git at videolan.org
Sun Sep 5 13:11:56 EEST 2021


ffmpeg | branch: master | Andreas Rheinhardt <andreas.rheinhardt at outlook.com> | Wed Sep  1 15:46:09 2021 +0200| [b36b703c29a6cad8c01ea5a5867a709791324eff] | committer: Andreas Rheinhardt

fftools/cmdutils: Use %c, not %s to write a single char

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt at outlook.com>

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

 fftools/cmdutils.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/fftools/cmdutils.c b/fftools/cmdutils.c
index 9c14a60fdd..ac172dbd65 100644
--- a/fftools/cmdutils.c
+++ b/fftools/cmdutils.c
@@ -1345,9 +1345,9 @@ static int show_formats_devices(void *optctx, const char *opt, const char *arg,
             break;
         last_name = name;
 
-        printf(" %s%s %-15s %s\n",
-               decode ? "D" : " ",
-               encode ? "E" : " ",
+        printf(" %c%c %-15s %s\n",
+               decode ? 'D' : ' ',
+               encode ? 'E' : ' ',
                name,
             long_name ? long_name:" ");
     }



More information about the ffmpeg-cvslog mailing list