[FFmpeg-devel] [PATCH] ffprobe: force display of missing fields, depending on writer.flags
stefasab at gmail.com
Wed Nov 9 02:05:32 CET 2011
On date Monday 2011-11-07 17:58:36 +0100, Stefano Sabatini encoded:
> On date Monday 2011-10-24 02:39:46 +0200, Stefano Sabatini encoded:
> > Add flags field to Writer, and define the
> > WRITER_FLAG_DISPLAY_OPTIONAL_FIELDS flag which forces the display of
> > optional fields, for example non-available or invalid fields.
> > Also set the flag in the default writer.
> > This change is required since for some writers it is preferable to show
> > all the fields (for example for avoiding a variable number of fields in
> > CSV output), while for other formats (e.g. JSON, XML), it is better to
> > leave invalid/unavailable fields unspecified and thus avoid parsing work
> > to the deserializer.
> > ---
> > ffprobe.c | 130 +++++++++++++++++++++++++++++++++++++-----------------------
> > 1 files changed, 80 insertions(+), 50 deletions(-)
> Updated, this is required by the compact writer.
If nobody has better ideas, I'm going to apply this in a day or two.
FFmpeg = Fancy & Friendly Mere Power Elected God
More information about the ffmpeg-devel