From 5a1dacda9d0eacd4031fa6b9f5a7758063f99388 Mon Sep 17 00:00:00 2001 From: Vitor Sessak Date: Fri, 4 Apr 2008 20:07:17 +0000 Subject: [PATCH] Minor simplification Commited in SoC by Vitor Sessak on 2007-10-30 21:11:34 Originally committed as revision 12705 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavfilter/avfiltergraph.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/libavfilter/avfiltergraph.c b/libavfilter/avfiltergraph.c index 8c16bc5d39..0a0108eb0c 100644 --- a/libavfilter/avfiltergraph.c +++ b/libavfilter/avfiltergraph.c @@ -430,7 +430,6 @@ int avfilter_graph_config_links(AVFilterContext *graphctx) static AVFilterContext *create_filter_with_args(const char *filt, void *opaque) { - AVFilter *filterdef; AVFilterContext *ret; char *filter = av_strdup(filt); /* copy - don't mangle the input string */ char *name, *args; @@ -447,8 +446,7 @@ static AVFilterContext *create_filter_with_args(const char *filt, void *opaque) av_log(NULL, AV_LOG_INFO, "creating filter \"%s\" with args \"%s\"\n", name, args ? args : "(none)"); - if((filterdef = avfilter_get_by_name(name)) && - (ret = avfilter_open(filterdef, NULL))) { + if(ret = avfilter_open(avfilter_get_by_name(name), NULL)) { if(avfilter_init_filter(ret, args, opaque)) { av_log(NULL, AV_LOG_ERROR, "error initializing filter!\n"); avfilter_destroy(ret);