aboutsummaryrefslogtreecommitdiffstats
path: root/libavfilter/graphparser.c
diff options
context:
space:
mode:
authorStefano Sabatini <stefano.sabatini-lala@poste.it>2010-12-12 13:39:16 +0000
committerStefano Sabatini <stefano.sabatini-lala@poste.it>2010-12-12 13:39:16 +0000
commit9241cd2095fe8395e02be5556d657d06f65ba91f (patch)
tree267bcb93bc6db19f76c651402ada6ad2d96c651e /libavfilter/graphparser.c
parentb276854d0687a4951f7c0aafa8ba2604239a3e74 (diff)
downloadffmpeg-9241cd2095fe8395e02be5556d657d06f65ba91f.tar.gz
Make avfilter_parse_graph() output a more meaningful message when an
invalid filterchain is detected. Originally committed as revision 25936 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavfilter/graphparser.c')
-rw-r--r--libavfilter/graphparser.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/libavfilter/graphparser.c b/libavfilter/graphparser.c
index 678b7bee70..add3019b5c 100644
--- a/libavfilter/graphparser.c
+++ b/libavfilter/graphparser.c
@@ -338,6 +338,7 @@ int avfilter_graph_parse(AVFilterGraph *graph, const char *filters,
do {
AVFilterContext *filter;
+ const char *filterchain = filters;
filters += strspn(filters, WHITESPACES);
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,
if (chr == ';' && curr_inputs) {
av_log(log_ctx, AV_LOG_ERROR,
- "Could not find a output to link when parsing \"%s\"\n",
- filters - 1);
+ "Invalid filterchain containing an unlabelled output pad: \"%s\"\n",
+ filterchain);
ret = AVERROR(EINVAL);
goto fail;
}