[FFmpeg-cvslog] r20800 - trunk/libavfilter/graphparser.c
stefano
subversion
Fri Dec 11 21:02:10 CET 2009
Author: stefano
Date: Fri Dec 11 21:02:10 2009
New Revision: 20800
Log:
Make parse_filter() parsing more robust.
Add ';' and '\n' to the terminating characters for the name of a
filter, and ';' to the terminating characters for its args.
Modified:
trunk/libavfilter/graphparser.c
Modified: trunk/libavfilter/graphparser.c
==============================================================================
--- trunk/libavfilter/graphparser.c Fri Dec 11 18:13:35 2009 (r20799)
+++ trunk/libavfilter/graphparser.c Fri Dec 11 21:02:10 2009 (r20800)
@@ -120,12 +120,12 @@ static AVFilterContext *parse_filter(con
int index, AVClass *log_ctx)
{
char *opts = NULL;
- char *name = av_get_token(buf, "=,[");
+ char *name = av_get_token(buf, "=,;[\n");
AVFilterContext *ret;
if(**buf == '=') {
(*buf)++;
- opts = av_get_token(buf, "[],\n");
+ opts = av_get_token(buf, "[],;\n");
}
ret = create_filter(graph, index, name, opts, log_ctx);
More information about the ffmpeg-cvslog
mailing list