Commit ec624d7c authored by Stefano Sabatini's avatar Stefano Sabatini

ffprobe: use "%*" printf syntax in XML_INDENT() in place of a loop

Possibly faster/cleaner.
Suggested-By: 's avatarClément Bœsch <ubitux@gmail.com>
parent ce39ba92
...@@ -1032,7 +1032,7 @@ static void xml_print_footer(WriterContext *wctx) ...@@ -1032,7 +1032,7 @@ static void xml_print_footer(WriterContext *wctx)
printf("</%sffprobe>\n", xml->fully_qualified ? "ffprobe:" : ""); 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) static void xml_print_chapter_header(WriterContext *wctx, const char *chapter)
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment