summaryrefslogtreecommitdiff
path: root/libavfilter
diff options
context:
space:
mode:
authorVitor Sessak <vitor1001@gmail.com>2008-05-24 20:41:54 +0000
committerVitor Sessak <vitor1001@gmail.com>2008-05-24 20:41:54 +0000
commitba3fed2fc22fb1c80b807444a5c74eebd3dabe55 (patch)
tree8fff995a3416ce36836257c7587c7ced6c1828ff /libavfilter
parent98fb286b604af4de8cacd6f20adc27c3deadf4bb (diff)
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
Diffstat (limited to 'libavfilter')
-rw-r--r--libavfilter/graphparser.c7
1 files 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);
}