git.videolan.org
/
ffmpeg.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Proper handling of trailing whitespaces
[ffmpeg.git]
/
libavfilter
/
graphparser.c
diff --git
a/libavfilter/graphparser.c
b/libavfilter/graphparser.c
index
c1304e7
..
49a8bb1
100644
(file)
--- 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;
}