]> rtime.felk.cvut.cz Git - frescor/ffmpeg.git/commitdiff
Print a warning and fail if the graph description cannot be
authorstefano <stefano@9553f0bf-9b14-0410-a0b8-cfaf0461ba5b>
Fri, 16 Jan 2009 23:56:53 +0000 (23:56 +0000)
committerstefano <stefano@9553f0bf-9b14-0410-a0b8-cfaf0461ba5b>
Fri, 16 Jan 2009 23:56:53 +0000 (23:56 +0000)
parsed.

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@16648 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

libavfilter/graphparser.c

index e7019eae25720c3e8cedb82e430e38b362f3fc00..1fb1158a513a60dc814e2e4d3c929a1ebc03ad61 100644 (file)
@@ -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]";