[FFmpeg-devel] [PATCH] ffprobe: add compact option to JSON writer

Nicolas George nicolas.george at normalesup.org
Mon Jan 9 14:54:11 CET 2012


Le decadi 20 nivôse, an CCXX, Stefano Sabatini a écrit :
> +If set to 1 specify if the output should be compact, that is each
> +section is printed on a single line. Default value is 0.

Nice.

> +        if (!json->compact)
> +            JSON_INDENT();

Maybe you could use a macro for that as a whole?

> +    if (!json->compact)
> +        JSON_INDENT(); printf("}");
>  }

This one is strange.

Regards,

-- 
  Nicolas George


More information about the ffmpeg-devel mailing list