diff options
author | Vitor Sessak <vitor1001@gmail.com> | 2008-05-24 20:39:55 +0000 |
---|---|---|
committer | Vitor Sessak <vitor1001@gmail.com> | 2008-05-24 20:39:55 +0000 |
commit | a78f2ccdd6eb1c2911073226cceac6e7a441e735 (patch) | |
tree | c8164b4cf33946be83741a2fd33edea51624d81e /libavfilter | |
parent | a64821f4e525a363e9d868b84ef4bcd717efc427 (diff) | |
download | ffmpeg-streaming-a78f2ccdd6eb1c2911073226cceac6e7a441e735.zip ffmpeg-streaming-a78f2ccdd6eb1c2911073226cceac6e7a441e735.tar.gz |
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
Diffstat (limited to 'libavfilter')
-rw-r--r-- | libavfilter/graphparser.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libavfilter/graphparser.c b/libavfilter/graphparser.c index c1304e7..49a8bb1 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; } |