[MPlayer-dev-eng] [PATCH] allow subopt parser to receive arbitrary strings

Reimar Döffinger Reimar.Doeffinger at stud.uni-karlsruhe.de
Sat May 21 21:25:31 CEST 2005


Hi,
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...

Greetings,
Reimar Döffinger




More information about the MPlayer-dev-eng mailing list