[FFmpeg-soc] [soc]: r2102 - libavfilter/graphparser.c

vitor subversion at mplayerhq.hu
Sun Apr 6 21:02:57 CEST 2008


Author: vitor
Date: Sun Apr  6 21:02:56 2008
New Revision: 2102

Log:
Use '[' and ']' for label naming

Modified:
   libavfilter/graphparser.c

Modified: libavfilter/graphparser.c
==============================================================================
--- libavfilter/graphparser.c	(original)
+++ libavfilter/graphparser.c	Sun Apr  6 21:02:56 2008
@@ -117,8 +117,8 @@ static char *consume_string(const char *
             if(*in) in++;
             break;
         case 0:
-        case ')':
-        case '(':
+        case ']':
+        case '[':
         case '=':
         case ',':
             *out++= 0;
@@ -146,7 +146,7 @@ static void parse_link_name(const char *
     if (!*name[0])
         goto fail;
 
-    if (*(*buf)++ != ')')
+    if (*(*buf)++ != ']')
         goto fail;
 
     return;
@@ -211,7 +211,7 @@ static int parse_inouts(const char **buf
                         enum LinkType type, AVFilterContext *filter)
 {
     int pad = firstpad;
-    while (**buf == '(') {
+    while (**buf == '[') {
         AVFilterInOut *inoutn = av_malloc(sizeof(AVFilterInOut));
         parse_link_name(buf, &inoutn->name);
         inoutn->type = type;
@@ -225,8 +225,8 @@ static int parse_inouts(const char **buf
 
 static const char *skip_inouts(const char *buf)
 {
-    while (*buf == '(') {
-        buf += strcspn(buf, ")");
+    while (*buf == '[') {
+        buf += strcspn(buf, "]");
         buf++;
     }
     return buf;



More information about the FFmpeg-soc mailing list