Revision 7baa6210

View differences:

libavfilter/graphparser.c
334 334

  
335 335
        if(match) {
336 336
            /* A label of a open link. Link it. */
337
            AVFilterInOut *p = *currInputs;
337
            AVFilterInOut *input = *currInputs;
338 338
            if (match->type != LinkTypeIn) {
339 339
                av_log(log_ctx, AV_LOG_ERROR,
340 340
                       "Label \"%s\" appears twice as output!\n", match->name);
......
342 342
            }
343 343

  
344 344
            *currInputs = (*currInputs)->next;
345
            if(link_filter(p->filter, p->pad_idx,
345
            if(link_filter(input->filter, input->pad_idx,
346 346
                           match->filter, match->pad_idx, log_ctx) < 0)
347 347
                return -1;
348 348
            av_free(match);
349
            av_free(p);
349
            av_free(input);
350 350
        } else {
351 351
            /* Not in the list, so add the first input as a openLink */
352
            AVFilterInOut *p = *currInputs;
352
            AVFilterInOut *input = *currInputs;
353 353
            *currInputs = (*currInputs)->next;
354
            p->next = *openLinks;
355
            p->type = LinkTypeOut;
356
            p->name = name;
357
            *openLinks = p;
354
            input->next = *openLinks;
355
            input->type = LinkTypeOut;
356
            input->name = name;
357
            *openLinks = input;
358 358
        }
359 359
        consume_whitespace(buf);
360 360
        pad++;

Also available in: Unified diff