[FFmpeg-devel] [PATCH][RFC] ffprobe: Consider the chosen separator when doing CSV escaping

Stefano Sabatini stefasab at gmail.com
Sat Sep 22 11:34:57 CEST 2012


On date Thursday 2012-09-20 21:22:49 +0200, Alexander Strasser encoded:
> Hi Stefano,
> 
> Stefano Sabatini wrote:
> > On date Tuesday 2012-09-18 23:26:42 +0200, Alexander Strasser encoded:
> > > Signed-off-by: Alexander Strasser <eclipse7 at gmx.net>
> > > ---
> > > 
> > 
> > >   Just a first step. More stuff like escaping key fields and checking the
> > > separator does not collide with other meta characters would be the ones I
> > > can think ATM.
> > 
> > which other meta characters?
> 
>   I think the output will be broken if the separator character is equal to
> the end-of-record or quote character. I do not yet know much of the ffprobe
> code so please forgive if I am ignorant.

Yes I considered that, and concluded that I was lazy and didn't want
to implement further checks, and allow the user to shoot her head if
she pleases so.
-- 
FFmpeg = Faithful & Furious Meaningful Pitiless Esoteric Gem


More information about the ffmpeg-devel mailing list