OSDN Git Service

Simplify
authorVitor Sessak <vitor1001@gmail.com>
Sat, 24 May 2008 20:39:36 +0000 (20:39 +0000)
committerVitor Sessak <vitor1001@gmail.com>
Sat, 24 May 2008 20:39:36 +0000 (20:39 +0000)
Commited in SoC by Vitor Sessak on 2008-04-10 16:51:23

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

libavfilter/graphparser.c

index 6b01f49..5d68839 100644 (file)
@@ -224,10 +224,9 @@ static int parse_inouts(const char **buf, AVFilterInOut **inout, int firstpad,
 
 static const char *skip_inouts(const char *buf)
 {
-    while (*buf == '[') {
-        buf += strcspn(buf, "]");
-        buf++;
-    }
+    while (*buf == '[')
+        buf += strcspn(buf, "]") + 1;
+
     return buf;
 }