History

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. Originally committed as revision 20800 to svn://svn.ffmpeg.org/ffmpeg/trunk

Stefano Sabatini committed 16 years ago

Commit 15a316c1 parent cfac91f1 file · +2 −2Browse files

Showing the changes to libavfilter/graphparser.c (1 of 1 file). Show all

Unified · Split

libavfilter/graphparser.c+2−2
@@ -120,12 +120,12 @@ static AVFilterContext *parse_filter(const char **buf, AVFilterGraph *graph, · 119 unmodified lines
120120 int index, AVClass *log_ctx)
121121 {
122122 char *opts = NULL;
123− char *name = av_get_token(buf, "=,[");
123+ char *name = av_get_token(buf, "=,;[\n");
124124 AVFilterContext *ret;
125125
126126 if(**buf == '=') {
127127 (*buf)++;
128− opts = av_get_token(buf, "[],\n");
128+ opts = av_get_token(buf, "[],;\n");
129129 }
130130
131131 ret = create_filter(graph, index, name, opts, log_ctx);

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t