Browse Source

avfiltergraph: remove a redundant call to avfilter_get_by_name().

tags/n1.0
Anton Khirnov 13 years ago
parent
commit
24b2f4ed21
1 changed files with 1 additions and 2 deletions
  1. +1
    -2
      libavfilter/avfiltergraph.c

+ 1
- 2
libavfilter/avfiltergraph.c View 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;


Loading…
Cancel
Save