aboutsummaryrefslogtreecommitdiffstats
path: root/ffprobe.c
diff options
context:
space:
mode:
authorStefano Sabatini <stefasab@gmail.com>2012-09-27 00:45:16 +0200
committerStefano Sabatini <stefasab@gmail.com>2012-09-27 01:10:46 +0200
commit163f7afbe6667a9a881f5d07b64a232b36152153 (patch)
treedd0ad2876e34e33e03f51aafdcc830d923f76023 /ffprobe.c
parent2e4ec8947d954f1d00e724c520920499397b8ef7 (diff)
downloadffmpeg-163f7afbe6667a9a881f5d07b64a232b36152153.tar.gz
ffprobe: fix indentation of the first line of packets_and_frames sections in the json output
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 ce09dcc7a8..e9f66b0342 100644
--- a/ffprobe.c
+++ b/ffprobe.c
@@ -1089,6 +1089,7 @@ static void json_print_section_header(WriterContext *wctx)
json_escape_str(&buf, section->name, wctx);
JSON_INDENT();
+ json->indent_level++;
if (section->flags & SECTION_FLAG_IS_ARRAY) {
printf("\"%s\": [\n", buf.str);
} else if (!(parent_section->flags & SECTION_FLAG_IS_ARRAY)) {
@@ -1103,7 +1104,6 @@ static void json_print_section_header(WriterContext *wctx)
printf("\"type\": \"%s\"%s", section->name, json->item_sep);
}
}
- json->indent_level++;
av_bprint_finalize(&buf, NULL);
}
}