[FFmpeg-devel] [PATCH] lavu/avstring: support "'" escaping in sequence of chars enclosed by "'"

Nicolas George nicolas.george at normalesup.org
Sun Sep 9 19:49:51 CEST 2012


Le nonidi 19 fructidor, an CCXX, Stefano Sabatini a écrit :
> In sendcmd, a filter argument is parsed as a single token:
> fontfile=FreeSerif.ttf:text=hello::world
> 
> and whitespaces are used as separators, so each space needs to be escaped.
> 
> So I thougth it could be useful to write:
> 'fontfile=FreeSerif.ttf:text=\'hello::world\''
> 
> rather than:
> 'fontfile=FreeSerif.ttf:text='\''hello::world'\'
> 
> which is somehow cumbersome.

That makes sense.

> On the other hand, if this is the standard quoting behavior I'd better
> drop this patch.

The most obvious solution would be to implement double quotes as well as
single quotes, with the same rules as the shell (minus the $ expansion of
course), but that is more work.

Regards,

-- 
  Nicolas George
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20120909/89d8bf4a/attachment.asc>


More information about the ffmpeg-devel mailing list