[MPlayer-dev-eng] [PATCH] allow subopt parser to receive arbitrary strings
Diego Biurrun
diego at biurrun.de
Sat May 21 23:15:36 CEST 2005
On Sat, May 21, 2005 at 09:25:31PM +0200, Reimar Döffinger wrote:
> On Sat, May 14, 2005 at 03:49:27PM +0200, Reimar D?ffinger wrote:
> > the attached patch add some kind of quoting support for the support
> > parser, so that e.g. strings containing : are now possible.
> > I have to admit the way is a bit weird, but two reasons for doing it
> > like that:
> > 1) simple to use for Guis
> > 2) it can parse the string without having to modify it (so no need for
> > malloc etc)
> >
> > It allows for the following string format:
> > %length%string
> >
> > e.g. (in reference to a post to mencoder-users):
> > -ao pcm:file=%11%C:\test.wav
> >
> >
> > -ao pcm:file=test.wav
> > is equivalent to
> > -ao pcm:file=%8%test.wav
> >
> > This also means that e.g.
> > -ao pcm:file=%1abd.wav
> > will stop with an error.
> >
> > I know this is a non-standard way to do it, but it seems best-suited to
> > me.
>
> Hm.. no comments... Can anyone help me document this? I don't really
> know where the best place would be...
The usage section of the docs and/or the man page.
Diego
More information about the MPlayer-dev-eng
mailing list