[SCM] libav/experimental: Print a warning and fail if the graph description cannot be parsed.

siretart at users.alioth.debian.org siretart at users.alioth.debian.org
Sun Jun 30 16:35:30 UTC 2013


The following commit has been merged in the experimental branch:
commit 784712343c32611a32b0440948384408b628ca29
Author: Stefano Sabatini <stefano.sabatini-lala at poste.it>
Date:   Fri Jan 16 23:56:53 2009 +0000

    Print a warning and fail if the graph description cannot be
    parsed.
    
    Originally committed as revision 16648 to svn://svn.ffmpeg.org/ffmpeg/trunk

diff --git a/libavfilter/graphparser.c b/libavfilter/graphparser.c
index e7019ea..1fb1158 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]";

-- 
Libav/FFmpeg packaging



More information about the pkg-multimedia-commits mailing list