[FFmpeg-devel] [PATCH 2/2] fftools/opt_common: Don't add unnecessary " "

Andreas Rheinhardt andreas.rheinhardt at outlook.com
Mon Jul 31 03:47:51 EEST 2023


Before:
D.AIL. smackaudio           Smacker audio (decoders: smackaud )
After:
D.AIL. smackaudio           Smacker audio (decoders: smackaud)

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

diff --git a/fftools/opt_common.c b/fftools/opt_common.c
index 3881d5bbef..02d7048c42 100644
--- a/fftools/opt_common.c
+++ b/fftools/opt_common.c
@@ -615,10 +615,10 @@ static void print_codecs_for_id(enum AVCodecID id, int encoder)
     void *iter = NULL;
     const AVCodec *codec;
 
-    printf(" (%s: ", encoder ? "encoders" : "decoders");
+    printf(" (%s:", encoder ? "encoders" : "decoders");
 
     while ((codec = next_codec_for_id(id, &iter, encoder)))
-        printf("%s ", codec->name);
+        printf(" %s", codec->name);
 
     printf(")");
 }
-- 
2.34.1



More information about the ffmpeg-devel mailing list