avfilter/avfiltergraph: remove ugly dead code
Remnant of old merge. Signed-off-by: Paul B Mahol <onemda@gmail.com>
This commit is contained in:
parent
fd542b6f20
commit
cbd524b26c
@ -518,7 +518,6 @@ static int query_formats(AVFilterGraph *graph, AVClass *log_ctx)
|
|||||||
AVFilterContext *convert;
|
AVFilterContext *convert;
|
||||||
const AVFilter *filter;
|
const AVFilter *filter;
|
||||||
AVFilterLink *inlink, *outlink;
|
AVFilterLink *inlink, *outlink;
|
||||||
char scale_args[256];
|
|
||||||
char inst_name[30];
|
char inst_name[30];
|
||||||
|
|
||||||
if (graph->disable_auto_convert) {
|
if (graph->disable_auto_convert) {
|
||||||
@ -555,10 +554,6 @@ static int query_formats(AVFilterGraph *graph, AVClass *log_ctx)
|
|||||||
|
|
||||||
snprintf(inst_name, sizeof(inst_name), "auto_resampler_%d",
|
snprintf(inst_name, sizeof(inst_name), "auto_resampler_%d",
|
||||||
resampler_count++);
|
resampler_count++);
|
||||||
scale_args[0] = '\0';
|
|
||||||
if (graph->aresample_swr_opts)
|
|
||||||
snprintf(scale_args, sizeof(scale_args), "%s",
|
|
||||||
graph->aresample_swr_opts);
|
|
||||||
if ((ret = avfilter_graph_create_filter(&convert, filter,
|
if ((ret = avfilter_graph_create_filter(&convert, filter,
|
||||||
inst_name, graph->aresample_swr_opts,
|
inst_name, graph->aresample_swr_opts,
|
||||||
NULL, graph)) < 0)
|
NULL, graph)) < 0)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user