Add ';' and '\n' to the terminating characters for the name of a filter, and ';' to the terminating characters for its args. Originally committed as revision 20800 to svn://svn.ffmpeg.org/ffmpeg/trunk
Showing the changes to libavfilter/graphparser.c (1 of 1 file). Show all
Unified · Split
| @@ -120,12 +120,12 @@ static AVFilterContext *parse_filter(const char **buf, AVFilterGraph *graph, · 119 unmodified lines | ||
| 120 | 120 | int index, AVClass *log_ctx) |
| 121 | 121 | { |
| 122 | 122 | char *opts = NULL; |
| 123 | − char *name = av_get_token(buf, "=,["); | |
| 123 | + char *name = av_get_token(buf, "=,;[\n"); | |
| 124 | 124 | AVFilterContext *ret; |
| 125 | 125 | |
| 126 | 126 | if(**buf == '=') { |
| 127 | 127 | (*buf)++; |
| 128 | − opts = av_get_token(buf, "[],\n"); | |
| 128 | + opts = av_get_token(buf, "[],;\n"); | |
| 129 | 129 | } |
| 130 | 130 | |
| 131 | 131 | ret = create_filter(graph, index, name, opts, log_ctx); |