Originally committed as revision 25936 to svn://svn.ffmpeg.org/ffmpeg/trunk
Showing the changes to libavfilter/graphparser.c (1 of 1 file). Show all
Unified · Split
| @@ -338,6 +338,7 @@ int avfilter_graph_parse(AVFilterGraph *graph, const char *filters, · 337 unmodified lines | |||
| 338 | 338 | ||
| 339 | do { | 339 | do { |
| 340 | AVFilterContext *filter; | 340 | AVFilterContext *filter; |
| 341 | const char *filterchain = filters; | ||
| 341 | filters += strspn(filters, WHITESPACES); | 342 | filters += strspn(filters, WHITESPACES); |
| 342 | 343 | ||
| 343 | if ((ret = parse_inputs(&filters, &curr_inputs, &open_outputs, log_ctx)) < 0) | 344 | if ((ret = parse_inputs(&filters, &curr_inputs, &open_outputs, log_ctx)) < 0) |
| @@ -365,8 +366,8 @@ int avfilter_graph_parse(AVFilterGraph *graph, const char *filters, · 21 unmodified lines | |||
| 365 | 366 | ||
| 366 | if (chr == ';' && curr_inputs) { | 367 | if (chr == ';' && curr_inputs) { |
| 367 | av_log(log_ctx, AV_LOG_ERROR, | 368 | av_log(log_ctx, AV_LOG_ERROR, |
| 368 | "Could not find a output to link when parsing \"%s\"\n", | 369 | "Invalid filterchain containing an unlabelled output pad: \"%s\"\n", |
| 369 | filters - 1); | 370 | filterchain); |
| 370 | ret = AVERROR(EINVAL); | 371 | ret = AVERROR(EINVAL); |
| 371 | goto fail; | 372 | goto fail; |
| 372 | } | 373 | } |