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 | 259 | while(**buf == '[') { |
| 260 | 260 | char *name = parse_link_name(buf, log_ctx); |
| 261 | − AVFilterInOut *link_to_add; | |
| 262 | 261 | AVFilterInOut *match; |
| 263 | 262 | |
| 264 | 263 | if(!name) |
| @@ -275,18 +274,15 @@ static int parse_inputs(const char **buf, AVFilterInOut **currInputs, · 10 unmodified lines | ||
| 275 | 274 | "Label \"%s\" appears twice as input!\n", match->name); |
| 276 | 275 | return -1; |
| 277 | 276 | } |
| 278 | − | |
| 279 | − link_to_add = match; | |
| 280 | 277 | } else { |
| 281 | 278 | /* Not in the list, so add it as an input */ |
| 282 | − link_to_add = av_mallocz(sizeof(AVFilterInOut)); | |
| 283 | − | |
| 284 | − link_to_add->name = name; | |
| 285 | − link_to_add->type = LinkTypeIn; | |
| 286 | − link_to_add->pad_idx = pad; | |
| 279 | + match = av_mallocz(sizeof(AVFilterInOut)); | |
| 280 | + match->name = name; | |
| 281 | + match->type = LinkTypeIn; | |
| 282 | + match->pad_idx = pad; | |
| 287 | 283 | } |
| 288 | 284 | |
| 289 | − insert_inout(currInputs, link_to_add); | |
| 285 | + insert_inout(currInputs, match); | |
| 290 | 286 | |
| 291 | 287 | *buf += consume_whitespace(*buf); |
| 292 | 288 | pad++; |