From: Vitor Sessak Date: Sat, 24 May 2008 20:39:55 +0000 (+0000) Subject: Proper handling of trailing whitespaces X-Git-Tag: v0.5~4623 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=a78f2ccdd6eb1c2911073226cceac6e7a441e735;p=coroid%2Fffmpeg_saccubus.git Proper handling of trailing whitespaces Commited in SoC by Vitor Sessak on 2008-04-10 21:29:33 Originally committed as revision 13308 to svn://svn.ffmpeg.org/ffmpeg/trunk --- diff --git a/libavfilter/graphparser.c b/libavfilter/graphparser.c index c1304e7f0..49a8bb156 100644 --- a/libavfilter/graphparser.c +++ b/libavfilter/graphparser.c @@ -120,6 +120,8 @@ static char *consume_string(const char **buf) case '[': case '=': case ',': + case ' ': + case '\n': *out++= 0; break; default: @@ -128,6 +130,8 @@ static char *consume_string(const char **buf) } while(out[-1]); (*buf)--; + consume_whitespace(buf); + return ret; }