Originally committed as revision 25936 to svn://svn.ffmpeg.org/ffmpeg/trunk
| ... | ... |
@@ -338,6 +338,7 @@ int avfilter_graph_parse(AVFilterGraph *graph, const char *filters, |
| 338 | 338 |
|
| 339 | 339 |
do {
|
| 340 | 340 |
AVFilterContext *filter; |
| 341 |
+ const char *filterchain = filters; |
|
| 341 | 342 |
filters += strspn(filters, WHITESPACES); |
| 342 | 343 |
|
| 343 | 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, |
| 365 | 365 |
|
| 366 | 366 |
if (chr == ';' && curr_inputs) {
|
| 367 | 367 |
av_log(log_ctx, AV_LOG_ERROR, |
| 368 |
- "Could not find a output to link when parsing \"%s\"\n", |
|
| 369 |
- filters - 1); |
|
| 368 |
+ "Invalid filterchain containing an unlabelled output pad: \"%s\"\n", |
|
| 369 |
+ filterchain); |
|
| 370 | 370 |
ret = AVERROR(EINVAL); |
| 371 | 371 |
goto fail; |
| 372 | 372 |
} |