diff options
author | Stefano Sabatini <stefasab@gmail.com> | 2012-01-08 10:40:11 +0100 |
---|---|---|
committer | Stefano Sabatini <stefasab@gmail.com> | 2012-01-08 11:19:27 +0100 |
commit | ec624d7c5cbc69a1c91d552926a0f04016d12e50 (patch) | |
tree | 845f6bb84637ed96af7d26477e9d0c01ffe0a4d8 /ffprobe.c | |
parent | ce39ba92c0a1152b23bdbca1626d7e371bc96473 (diff) | |
download | ffmpeg-ec624d7c5cbc69a1c91d552926a0f04016d12e50.tar.gz |
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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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) { |