summaryrefslogtreecommitdiff
path: root/ffprobe.c
diff options
context:
space:
mode:
authorStefano Sabatini <stefasab@gmail.com>2012-01-08 10:40:11 +0100
committerStefano Sabatini <stefasab@gmail.com>2012-01-08 11:19:27 +0100
commitec624d7c5cbc69a1c91d552926a0f04016d12e50 (patch)
tree845f6bb84637ed96af7d26477e9d0c01ffe0a4d8 /ffprobe.c
parentce39ba92c0a1152b23bdbca1626d7e371bc96473 (diff)
ffprobe: use "%*" printf syntax in XML_INDENT() in place of a loop
Possibly faster/cleaner. Suggested-By: Clément Bœsch <ubitux@gmail.com>
Diffstat (limited to 'ffprobe.c')
-rw-r--r--ffprobe.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ffprobe.c b/ffprobe.c
index e0d015651c..a76e98ee45 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)
{