X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavfilter%2Favfiltergraph.c;h=86be2c4a8cf2bd165ed4dd3479028669c320f6cd;hb=719fde47ca641edd4321f384579438f930bc50eb;hp=980cdf28776012e50d622dfbbd43d68f843fb365;hpb=69fd0b7adbd22f24d45b6edb10eaf37d18c66bee;p=ffmpeg diff --git a/libavfilter/avfiltergraph.c b/libavfilter/avfiltergraph.c index 980cdf28776..86be2c4a8cf 100644 --- a/libavfilter/avfiltergraph.c +++ b/libavfilter/avfiltergraph.c @@ -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++); - snprintf(scale_args, sizeof(scale_args), "0:0:%s", graph->scale_sws_opts); + 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)