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
This commit is contained in:
Vitor Sessak 2008-04-04 20:07:17 +00:00
parent 6ea1446466
commit 5a1dacda9d
1 changed files with 1 additions and 3 deletions

View File

@ -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)
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);