From fd51ff1643329dc294412bc5b146c08b19fa73e2 Mon Sep 17 00:00:00 2001 From: Stefano Sabatini Date: Sat, 14 Feb 2009 11:47:42 +0000 Subject: [PATCH] Fix avfilter_parse_graph() invalid graph description detection. 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavfilter/graphparser.c b/libavfilter/graphparser.c index 1fb1158a5..69f92237f 100644 --- a/libavfilter/graphparser.c +++ b/libavfilter/graphparser.c @@ -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); -- 2.11.0