mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-03-17 20:17:55 +02:00
ffprobe: update entry index after printing packet/media type
Fix JSON output in case a frame or packet section contains a nested section. Fix trac issue http://trac.ffmpeg.org/ticket/8680. Signed-off-by: Marton Balint <cus@passwd.hu>
This commit is contained in:
parent
ade36d61de
commit
7adeeff91f
@ -1566,6 +1566,7 @@ static void json_print_section_header(WriterContext *wctx)
|
||||
if (!json->compact)
|
||||
JSON_INDENT();
|
||||
printf("\"type\": \"%s\"", section->name);
|
||||
wctx->nb_item[wctx->level]++;
|
||||
}
|
||||
}
|
||||
av_bprint_finalize(&buf, NULL);
|
||||
|
Loading…
x
Reference in New Issue
Block a user