avfiltergraph: remove a redundant call to avfilter_get_by_name().
This commit is contained in:
@@ -236,8 +236,7 @@ static int query_formats(AVFilterGraph *graph, AVClass *log_ctx)
|
|||||||
|
|
||||||
snprintf(inst_name, sizeof(inst_name), "auto-inserted resampler %d",
|
snprintf(inst_name, sizeof(inst_name), "auto-inserted resampler %d",
|
||||||
resampler_count++);
|
resampler_count++);
|
||||||
if ((ret = avfilter_graph_create_filter(&convert,
|
if ((ret = avfilter_graph_create_filter(&convert, filter,
|
||||||
avfilter_get_by_name("resample"),
|
|
||||||
inst_name, NULL, NULL, graph)) < 0)
|
inst_name, NULL, NULL, graph)) < 0)
|
||||||
return ret;
|
return ret;
|
||||||
break;
|
break;
|
||||||
|
Reference in New Issue
Block a user