[FFmpeg-devel] [PATCH] ffprobe: add XML output

Clément Bœsch ubitux at gmail.com
Mon Oct 24 07:18:38 CEST 2011


On Mon, Oct 24, 2011 at 02:42:20AM +0200, Stefano Sabatini wrote:
[...]
> Updated, I still want to think about the streams/packets in ffprobe
> (with no streams/packets container).
> 
> Patch depends on the two recently posted ffprobe patches.
> -- 
> FFmpeg = Frenzy and Foolish Mystic Programmable Eager Game

> From 0fe4b2bca4e577f682d05e4a5397073ae01f9e32 Mon Sep 17 00:00:00 2001
> From: Stefano Sabatini <stefasab at gmail.com>
> Date: Sun, 9 Oct 2011 00:24:31 +0200
> Subject: [PATCH] ffprobe: add XML writer
> 
> ---
>  Makefile         |    2 +-
>  doc/ffprobe.texi |   28 +++++++
>  doc/ffprobe.xsd  |   95 ++++++++++++++++++++++
>  ffprobe.c        |  230 +++++++++++++++++++++++++++++++++++++++++++++++++++++-
>  4 files changed, 353 insertions(+), 2 deletions(-)
>  create mode 100644 doc/ffprobe.xsd
> 
[...]
> +#define XML_INDENT() { int i; for (i = 0; i < xml->indent_level; i++) printf(INDENT); }
> +

What about defining INDENT_LEN 4, and use printf("%*c", xml->indent_level
* INDENT_LEN, ' ')? It could also be merged with the following printf.

[...]

-- 
Clément B.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 490 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20111024/809729b7/attachment.asc>


More information about the ffmpeg-devel mailing list