Browse Source

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

Possibly faster/cleaner.

Suggested-By: Clément Bœsch <ubitux@gmail.com>
tags/n0.10
Stefano Sabatini 13 years ago
parent
commit
ec624d7c5c
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      ffprobe.c

+ 1
- 1
ffprobe.c View File

@@ -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)
{


Loading…
Cancel
Save