[FFmpeg-cvslog] r13307 - trunk/libavfilter/graphparser.c
vitor
subversion
Sat May 24 22:39:52 CEST 2008
Author: vitor
Date: Sat May 24 22:39:51 2008
New Revision: 13307
Log:
Remove unneeded var
Commited in SoC by Vitor Sessak on 2008-04-10 21:26:45
Modified:
trunk/libavfilter/graphparser.c
Modified: trunk/libavfilter/graphparser.c
==============================================================================
--- trunk/libavfilter/graphparser.c (original)
+++ trunk/libavfilter/graphparser.c Sat May 24 22:39:51 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-cvslog
mailing list