[FFmpeg-devel] [PATCH 2/2] fftools/cmdutils: Use %c, not %s, to write single char

Andreas Rheinhardt andreas.rheinhardt at outlook.com
Wed Sep 1 09:53:29 EEST 2021


Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt at outlook.com>
---
 fftools/cmdutils.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/fftools/cmdutils.c b/fftools/cmdutils.c
index 69c39479f5..71799f46ff 100644
--- a/fftools/cmdutils.c
+++ b/fftools/cmdutils.c
@@ -2240,7 +2240,7 @@ static int print_device_sources(const AVInputFormat *fmt, AVDictionary *opts)
     }
 
     for (i = 0; i < device_list->nb_devices; i++) {
-        printf("%s %s [%s]\n", device_list->default_device == i ? "*" : " ",
+        printf("%c %s [%s]\n", device_list->default_device == i ? '*' : ' ',
                device_list->devices[i]->device_name, device_list->devices[i]->device_description);
     }
 
@@ -2264,7 +2264,7 @@ static int print_device_sinks(const AVOutputFormat *fmt, AVDictionary *opts)
     }
 
     for (i = 0; i < device_list->nb_devices; i++) {
-        printf("%s %s [%s]\n", device_list->default_device == i ? "*" : " ",
+        printf("%c %s [%s]\n", device_list->default_device == i ? '*' : ' ',
                device_list->devices[i]->device_name, device_list->devices[i]->device_description);
     }
 
-- 
2.30.2



More information about the ffmpeg-devel mailing list