mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-11-21 10:55:51 +02:00
lavfi/avfiltergraph: avoid to print "(null)" in the scale args
Fix parsing.
This commit is contained in:
parent
2969abd908
commit
8f37a1e8dc
@ -358,7 +358,11 @@ static int query_formats(AVFilterGraph *graph, AVClass *log_ctx)
|
||||
|
||||
snprintf(inst_name, sizeof(inst_name), "auto-inserted scaler %d",
|
||||
scaler_count++);
|
||||
if (graph->scale_sws_opts)
|
||||
snprintf(scale_args, sizeof(scale_args), "0:0:%s", graph->scale_sws_opts);
|
||||
else
|
||||
snprintf(scale_args, sizeof(scale_args), "0:0");
|
||||
|
||||
if ((ret = avfilter_graph_create_filter(&convert, filter,
|
||||
inst_name, scale_args, NULL,
|
||||
graph)) < 0)
|
||||
|
Loading…
Reference in New Issue
Block a user