[FFmpeg-cvslog] ffprobe: use "%*" printf syntax in XML_INDENT() in place of a loop
Stefano Sabatini
git at videolan.org
Sun Jan 8 11:24:14 CET 2012
ffmpeg | branch: master | Stefano Sabatini <stefasab at gmail.com> | Sun Jan 8 10:40:11 2012 +0100| [ec624d7c5cbc69a1c91d552926a0f04016d12e50] | committer: Stefano Sabatini
ffprobe: use "%*" printf syntax in XML_INDENT() in place of a loop
Possibly faster/cleaner.
Suggested-By: Clément Bœsch <ubitux at gmail.com>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=ec624d7c5cbc69a1c91d552926a0f04016d12e50
---
ffprobe.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/ffprobe.c b/ffprobe.c
index e0d0156..a76e98e 100644
--- a/ffprobe.c
+++ b/ffprobe.c
@@ -1032,7 +1032,7 @@ static void xml_print_footer(WriterContext *wctx)
printf("</%sffprobe>\n", xml->fully_qualified ? "ffprobe:" : "");
}
-#define XML_INDENT() { int i; for (i = 0; i < xml->indent_level; i++) printf(INDENT); }
+#define XML_INDENT() printf("%*c", xml->indent_level * 4, ' ')
static void xml_print_chapter_header(WriterContext *wctx, const char *chapter)
{
More information about the ffmpeg-cvslog
mailing list