diff options
author | Vitor Sessak <vitor1001@gmail.com> | 2008-05-24 20:39:51 +0000 |
---|---|---|
committer | Vitor Sessak <vitor1001@gmail.com> | 2008-05-24 20:39:51 +0000 |
commit | a64821f4e525a363e9d868b84ef4bcd717efc427 (patch) | |
tree | 4d1f338b20cd842cc98ac551d7fbca1658bf2413 /libavfilter | |
parent | 89475efd26ebc38259062732e141f80bb4e5704c (diff) | |
download | ffmpeg-streaming-a64821f4e525a363e9d868b84ef4bcd717efc427.zip ffmpeg-streaming-a64821f4e525a363e9d868b84ef4bcd717efc427.tar.gz |
Remove unneeded var
Commited in SoC by Vitor Sessak on 2008-04-10 21:26:45
Originally committed as revision 13307 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavfilter')
-rw-r--r-- | libavfilter/graphparser.c | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/libavfilter/graphparser.c b/libavfilter/graphparser.c index 1ec96b7..c1304e7 100644 --- a/libavfilter/graphparser.c +++ b/libavfilter/graphparser.c @@ -100,21 +100,20 @@ static void consume_whitespace(const char **buf) 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 **buf) } } while(out[-1]); - *buf = in-1; + (*buf)--; return ret; } |