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

vitor subversion at mplayerhq.hu
Thu Apr 10 23:26:45 CEST 2008


Author: vitor
Date: Thu Apr 10 23:26:45 2008
New Revision: 2120

Log:
Remove unneded var

Modified:
   libavfilter/graphparser.c

Modified: libavfilter/graphparser.c
==============================================================================
--- libavfilter/graphparser.c	(original)
+++ libavfilter/graphparser.c	Thu Apr 10 23:26:45 2008
@@ -100,21 +100,20 @@ static void consume_whitespace(const cha
 static char *consume_string(const char **buf)
 {
     char *out = av_malloc(strlen(*buf) + 1);
-    const char *in = *buf;
     char *ret = out;
 
     consume_whitespace(buf);
 
     do{
-        char c = *in++;
+        char c = *(*buf)++;
         switch (c) {
         case '\\':
-            *out++= *in++;
+            *out++= *(*buf)++;
             break;
         case '\'':
-            while(*in && *in != '\'')
-                *out++= *in++;
-            if(*in) in++;
+            while(**buf && **buf != '\'')
+                *out++= *(*buf)++;
+            if(**buf) (*buf)++;
             break;
         case 0:
         case ']':
@@ -128,7 +127,7 @@ static char *consume_string(const char *
         }
     } while(out[-1]);
 
-    *buf = in-1;
+    (*buf)--;
     return ret;
 }
 



More information about the FFmpeg-soc mailing list