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)
|
if (!json->compact)
|
||||||
JSON_INDENT();
|
JSON_INDENT();
|
||||||
printf("\"type\": \"%s\"", section->name);
|
printf("\"type\": \"%s\"", section->name);
|
||||||
|
wctx->nb_item[wctx->level]++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
av_bprint_finalize(&buf, NULL);
|
av_bprint_finalize(&buf, NULL);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user