Originally committed as revision 13353 to svn://svn.ffmpeg.org/ffmpeg/trunk
Showing the changes to libavfilter/graphparser.c (1 of 1 file). Show all
Unified · Split
| @@ -258,7 +258,6 @@ static int parse_inputs(const char **buf, AVFilterInOut **currInputs, · 257 unmodified lines | |||
| 258 | 258 | ||
| 259 | while(**buf == '[') { | 259 | while(**buf == '[') { |
| 260 | char *name = parse_link_name(buf, log_ctx); | 260 | char *name = parse_link_name(buf, log_ctx); |
| 261 | AVFilterInOut *link_to_add; | ||
| 262 | AVFilterInOut *match; | 261 | AVFilterInOut *match; |
| 263 | 262 | ||
| 264 | if(!name) | 263 | if(!name) |
| @@ -275,18 +274,15 @@ static int parse_inputs(const char **buf, AVFilterInOut **currInputs, · 10 unmodified lines | |||
| 275 | "Label \"%s\" appears twice as input!\n", match->name); | 274 | "Label \"%s\" appears twice as input!\n", match->name); |
| 276 | return -1; | 275 | return -1; |
| 277 | } | 276 | } |
| 278 | |||
| 279 | link_to_add = match; | ||
| 280 | } else { | 277 | } else { |
| 281 | /* Not in the list, so add it as an input */ | 278 | /* Not in the list, so add it as an input */ |
| 282 | link_to_add = av_mallocz(sizeof(AVFilterInOut)); | 279 | match = av_mallocz(sizeof(AVFilterInOut)); |
| 283 | 280 | match->name = name; | |
| 284 | link_to_add->name = name; | 281 | match->type = LinkTypeIn; |
| 285 | link_to_add->type = LinkTypeIn; | 282 | match->pad_idx = pad; |
| 286 | link_to_add->pad_idx = pad; | ||
| 287 | } | 283 | } |
| 288 | 284 | ||
| 289 | insert_inout(currInputs, link_to_add); | 285 | insert_inout(currInputs, match); |
| 290 | 286 | ||
| 291 | *buf += consume_whitespace(*buf); | 287 | *buf += consume_whitespace(*buf); |
| 292 | pad++; | 288 | pad++; |