Commit 8547ed9a authored by stefano's avatar stefano

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.


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@20800 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent deae7721
...@@ -120,12 +120,12 @@ static AVFilterContext *parse_filter(const char **buf, AVFilterGraph *graph, ...@@ -120,12 +120,12 @@ static AVFilterContext *parse_filter(const char **buf, AVFilterGraph *graph,
int index, AVClass *log_ctx) int index, AVClass *log_ctx)
{ {
char *opts = NULL; char *opts = NULL;
char *name = av_get_token(buf, "=,["); char *name = av_get_token(buf, "=,;[\n");
AVFilterContext *ret; AVFilterContext *ret;
if(**buf == '=') { if(**buf == '=') {
(*buf)++; (*buf)++;
opts = av_get_token(buf, "[],\n"); opts = av_get_token(buf, "[],;\n");
} }
ret = create_filter(graph, index, name, opts, log_ctx); ret = create_filter(graph, index, name, opts, log_ctx);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment