You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
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
This commit is contained in:
@@ -258,7 +258,6 @@ static int parse_inputs(const char **buf, AVFilterInOut **currInputs,
|
|||||||
|
|
||||||
while(**buf == '[') {
|
while(**buf == '[') {
|
||||||
char *name = parse_link_name(buf, log_ctx);
|
char *name = parse_link_name(buf, log_ctx);
|
||||||
AVFilterInOut *link_to_add;
|
|
||||||
AVFilterInOut *match;
|
AVFilterInOut *match;
|
||||||
|
|
||||||
if(!name)
|
if(!name)
|
||||||
@@ -275,18 +274,15 @@ static int parse_inputs(const char **buf, AVFilterInOut **currInputs,
|
|||||||
"Label \"%s\" appears twice as input!\n", match->name);
|
"Label \"%s\" appears twice as input!\n", match->name);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
link_to_add = match;
|
|
||||||
} else {
|
} else {
|
||||||
/* Not in the list, so add it as an input */
|
/* Not in the list, so add it as an input */
|
||||||
link_to_add = av_mallocz(sizeof(AVFilterInOut));
|
match = av_mallocz(sizeof(AVFilterInOut));
|
||||||
|
match->name = name;
|
||||||
link_to_add->name = name;
|
match->type = LinkTypeIn;
|
||||||
link_to_add->type = LinkTypeIn;
|
match->pad_idx = pad;
|
||||||
link_to_add->pad_idx = pad;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
insert_inout(currInputs, link_to_add);
|
insert_inout(currInputs, match);
|
||||||
|
|
||||||
*buf += consume_whitespace(*buf);
|
*buf += consume_whitespace(*buf);
|
||||||
pad++;
|
pad++;
|
||||||
|
Reference in New Issue
Block a user