From ba3fed2fc22fb1c80b807444a5c74eebd3dabe55 Mon Sep 17 00:00:00 2001 From: Vitor Sessak Date: Sat, 24 May 2008 20:41:54 +0000 Subject: [PATCH] Simplify Commited in SoC by Vitor Sessak on 2008-05-24 13:05:30 Originally committed as revision 13347 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavfilter/graphparser.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/libavfilter/graphparser.c b/libavfilter/graphparser.c index d3b9e0d012..926ab69052 100644 --- a/libavfilter/graphparser.c +++ b/libavfilter/graphparser.c @@ -162,15 +162,12 @@ static AVFilterContext *create_filter(AVFilterGraph *ctx, int index, static AVFilterContext *parse_filter(const char **buf, AVFilterGraph *graph, int index, AVClass *log_ctx) { - char *opts; + char *opts = NULL; char *name = consume_string(buf); - if(**buf == '=') { + if(**buf == '=') (*buf)++; opts = consume_string(buf); - } else { - opts = NULL; - } return create_filter(graph, index, name, opts, log_ctx); }