Commit 3e2ce4dd authored by vitor's avatar vitor

Minor simplification

Commited in SoC by Vitor Sessak on 2007-10-30 21:11:34


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@12705 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent a471443e
...@@ -430,7 +430,6 @@ int avfilter_graph_config_links(AVFilterContext *graphctx) ...@@ -430,7 +430,6 @@ int avfilter_graph_config_links(AVFilterContext *graphctx)
static AVFilterContext *create_filter_with_args(const char *filt, void *opaque) static AVFilterContext *create_filter_with_args(const char *filt, void *opaque)
{ {
AVFilter *filterdef;
AVFilterContext *ret; AVFilterContext *ret;
char *filter = av_strdup(filt); /* copy - don't mangle the input string */ char *filter = av_strdup(filt); /* copy - don't mangle the input string */
char *name, *args; char *name, *args;
...@@ -447,8 +446,7 @@ static AVFilterContext *create_filter_with_args(const char *filt, void *opaque) ...@@ -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", av_log(NULL, AV_LOG_INFO, "creating filter \"%s\" with args \"%s\"\n",
name, args ? args : "(none)"); name, args ? args : "(none)");
if((filterdef = avfilter_get_by_name(name)) && if(ret = avfilter_open(avfilter_get_by_name(name), NULL)) {
(ret = avfilter_open(filterdef, NULL))) {
if(avfilter_init_filter(ret, args, opaque)) { if(avfilter_init_filter(ret, args, opaque)) {
av_log(NULL, AV_LOG_ERROR, "error initializing filter!\n"); av_log(NULL, AV_LOG_ERROR, "error initializing filter!\n");
avfilter_destroy(ret); avfilter_destroy(ret);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment