avfiltergraph: remove a redundant call to avfilter_get_by_name().
authorAnton Khirnov <anton@khirnov.net>
Wed, 13 Jun 2012 08:12:08 +0000 (10:12 +0200)
committerAnton Khirnov <anton@khirnov.net>
Wed, 13 Jun 2012 11:58:03 +0000 (13:58 +0200)
libavfilter/avfiltergraph.c

index 0a863e5..3d463a8 100644 (file)
@@ -236,8 +236,7 @@ static int query_formats(AVFilterGraph *graph, AVClass *log_ctx)
 
                     snprintf(inst_name, sizeof(inst_name), "auto-inserted resampler %d",
                              resampler_count++);
-                    if ((ret = avfilter_graph_create_filter(&convert,
-                                                            avfilter_get_by_name("resample"),
+                    if ((ret = avfilter_graph_create_filter(&convert, filter,
                                                             inst_name, NULL, NULL, graph)) < 0)
                         return ret;
                     break;