OSDN Git Service

Fix avfilter_parse_graph() invalid graph description detection.
authorStefano Sabatini <stefano.sabatini-lala@poste.it>
Sat, 14 Feb 2009 11:47:42 +0000 (11:47 +0000)
committerStefano Sabatini <stefano.sabatini-lala@poste.it>
Sat, 14 Feb 2009 11:47:42 +0000 (11:47 +0000)
See the thread:
"[FFmpeg-devel] [PATCH] Fix avfilter-parse-graph()".

Originally committed as revision 17222 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavfilter/graphparser.c

index 1fb1158..69f9223 100644 (file)
@@ -376,7 +376,7 @@ int avfilter_parse_graph(AVFilterGraph *graph, const char *filters,
         index++;
     } while(chr == ',' || chr == ';');
 
-    if (*filters) {
+    if (chr) {
         av_log(log_ctx, AV_LOG_ERROR,
                "Unable to parse graph description substring: \"%s\"\n",
                filters - 1);