summaryrefslogtreecommitdiff
path: root/libavfilter
diff options
context:
space:
mode:
authorStefano Sabatini <stefano.sabatini-lala@poste.it>2009-01-16 23:56:53 +0000
committerStefano Sabatini <stefano.sabatini-lala@poste.it>2009-01-16 23:56:53 +0000
commit784712343c32611a32b0440948384408b628ca29 (patch)
treee5899d40891630d445bc395102ec525d7c6540ff /libavfilter
parent439c650301ef617bd4fc56a5e36e71d464623f7b (diff)
Print a warning and fail if the graph description cannot be
parsed. Originally committed as revision 16648 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavfilter')
-rw-r--r--libavfilter/graphparser.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/libavfilter/graphparser.c b/libavfilter/graphparser.c
index e7019eae25..1fb1158a51 100644
--- a/libavfilter/graphparser.c
+++ b/libavfilter/graphparser.c
@@ -376,6 +376,13 @@ int avfilter_parse_graph(AVFilterGraph *graph, const char *filters,
index++;
} while(chr == ',' || chr == ';');
+ if (*filters) {
+ av_log(log_ctx, AV_LOG_ERROR,
+ "Unable to parse graph description substring: \"%s\"\n",
+ filters - 1);
+ goto fail;
+ }
+
if(open_inputs && !strcmp(open_inputs->name, "out") && curr_inputs) {
/* Last output can be omitted if it is "[out]" */
const char *tmp = "[out]";