[FFmpeg-devel] [PATCH 1/4] ffprobe: fix C escaping.

Clément Bœsch ubitux at gmail.com
Wed May 30 01:08:25 CEST 2012


On Wed, May 30, 2012 at 01:04:34AM +0200, Stefano Sabatini wrote:
> On date Tuesday 2012-05-29 23:24:39 +0200, Clément Bœsch encoded:
> > ---
> >  ffprobe.c |    2 +-
> >  1 file changed, 1 insertion(+), 1 deletion(-)
> > 
> > diff --git a/ffprobe.c b/ffprobe.c
> > index d86ff0b..aa2b344 100644
> > --- a/ffprobe.c
> > +++ b/ffprobe.c
> > @@ -508,7 +508,7 @@ static const char *c_escape_str(AVBPrint *dst, const char *src, const char sep,
> >      const char *p;
> >  
> >      for (p = src; *p; p++) {
> > -        switch (*src) {
> > +        switch (*p) {
> >          case '\b': av_bprintf(dst, "%s", "\\b");  break;
> >          case '\f': av_bprintf(dst, "%s", "\\f");  break;
> >          case '\n': av_bprintf(dst, "%s", "\\n");  break;
> 
> Doh that's embarassing, looks good thanks.

If it works with one, it will work with all the others!

Pushed :)

-- 
Clément B.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 490 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20120530/96934e01/attachment.asc>


More information about the ffmpeg-devel mailing list