diff options
author | Vitor Sessak <vitor1001@gmail.com> | 2008-05-24 20:42:16 +0000 |
---|---|---|
committer | Vitor Sessak <vitor1001@gmail.com> | 2008-05-24 20:42:16 +0000 |
commit | c880791fc1d4ce8c083fa922f40fa498c5cf0389 (patch) | |
tree | 74bf70b35c87770868dfb0b4a44f57d4c1d457c5 /libavfilter/graphparser.c | |
parent | c956dd431fc53d7181fb9de9bb9c4b7067ab7c4f (diff) | |
download | ffmpeg-c880791fc1d4ce8c083fa922f40fa498c5cf0389.tar.gz |
Simplify
Commited in SoC by Vitor Sessak on 2008-05-24 16:55:47
Originally committed as revision 13353 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavfilter/graphparser.c')
-rw-r--r-- | libavfilter/graphparser.c | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/libavfilter/graphparser.c b/libavfilter/graphparser.c index 14cd651af0..489fa2e61d 100644 --- a/libavfilter/graphparser.c +++ b/libavfilter/graphparser.c @@ -258,7 +258,6 @@ static int parse_inputs(const char **buf, AVFilterInOut **currInputs, while(**buf == '[') { char *name = parse_link_name(buf, log_ctx); - AVFilterInOut *link_to_add; AVFilterInOut *match; if(!name) @@ -275,18 +274,15 @@ static int parse_inputs(const char **buf, AVFilterInOut **currInputs, "Label \"%s\" appears twice as input!\n", match->name); return -1; } - - link_to_add = match; } else { /* Not in the list, so add it as an input */ - link_to_add = av_mallocz(sizeof(AVFilterInOut)); - - link_to_add->name = name; - link_to_add->type = LinkTypeIn; - link_to_add->pad_idx = pad; + match = av_mallocz(sizeof(AVFilterInOut)); + match->name = name; + match->type = LinkTypeIn; + match->pad_idx = pad; } - insert_inout(currInputs, link_to_add); + insert_inout(currInputs, match); *buf += consume_whitespace(*buf); pad++; |