[FFmpeg-devel] [PATCH] ffprobe: implement generic reindent logic in the JSON writer

Stefano Sabatini stefasab at gmail.com
Mon Jan 9 13:48:43 CET 2012


On date Sunday 2012-01-08 20:08:38 +0100, Clément Bœsch encoded:
> On Sun, Jan 08, 2012 at 04:28:59PM +0100, Stefano Sabatini wrote:
[...]
> > Patch is supposed to be applied together with the next one, when the
> > output becomes:
> > 
> > {
> >     "streams": [
> >         {
> >             "index": 0,
> >             "codec_name": "mpeg1video",
> >             ...
> >         },
> >         {
> >             "index": 1,
> >             "codec_name": "mp2",
> >             ...
> >         }
> >     ],
> >     "format": {
> >         "filename": "foobar.mpg",
> >         "nb_streams": 2,
> >         ...
> >     }
> > }
> > 
> > which I find more readable (as it is more clear the relation between
> > the chapter and nested sections).
> 
> Fine with me.

Applied.
-- 
FFmpeg = Freak & Free Mournful Patchable Experimenting Gangster


More information about the ffmpeg-devel mailing list