mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-24 16:22:37 +00:00
ffprobe: use "%*" printf syntax in XML_INDENT() in place of a loop
Possibly faster/cleaner. Suggested-By: Clément Bœsch <ubitux@gmail.com>
This commit is contained in:
parent
ce39ba92c0
commit
ec624d7c5c
@ -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)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user