"[" is a terminating char for the filter name. This fixes the parsing of
authorVitor Sessak <vitor1001@gmail.com>
Fri, 8 May 2009 19:14:21 +0000 (19:14 +0000)
committerVitor Sessak <vitor1001@gmail.com>
Fri, 8 May 2009 19:14:21 +0000 (19:14 +0000)
things like

[in] vflip [out];

Originally committed as revision 18772 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavfilter/graphparser.c

index 9e4cd43..592934c 100644 (file)
@@ -120,7 +120,7 @@ static AVFilterContext *parse_filter(const char **buf, AVFilterGraph *graph,
                                      int index, AVClass *log_ctx)
 {
     char *opts = NULL;
-    char *name = av_get_token(buf, "=,");
+    char *name = av_get_token(buf, "=,[");
     AVFilterContext *ret;
 
     if(**buf == '=') {