[FFmpeg-cvslog] r12705 - trunk/libavfilter/avfiltergraph.c

vitor subversion
Fri Apr 4 22:07:17 CEST 2008


Author: vitor
Date: Fri Apr  4 22:07:17 2008
New Revision: 12705

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


Modified:
   trunk/libavfilter/avfiltergraph.c

Modified: trunk/libavfilter/avfiltergraph.c
==============================================================================
--- trunk/libavfilter/avfiltergraph.c	(original)
+++ trunk/libavfilter/avfiltergraph.c	Fri Apr  4 22:07:17 2008
@@ -430,7 +430,6 @@ int avfilter_graph_config_links(AVFilter
 
 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_wi
     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);




More information about the ffmpeg-cvslog mailing list