Fix parsing.
Showing the changes to libavfilter/avfiltergraph.c (1 of 1 file). Show all
Unified · Split
| @@ -358,7 +358,11 @@ static int query_formats(AVFilterGraph *graph, AVClass *log_ctx) · 357 unmodified lines | |||
| 358 | 358 | ||
| 359 | snprintf(inst_name, sizeof(inst_name), "auto-inserted scaler %d", | 359 | snprintf(inst_name, sizeof(inst_name), "auto-inserted scaler %d", |
| 360 | scaler_count++); | 360 | scaler_count++); |
| 361 | snprintf(scale_args, sizeof(scale_args), "0:0:%s", graph->scale_sws_opts); | 361 | if (graph->scale_sws_opts) |
| 362 | snprintf(scale_args, sizeof(scale_args), "0:0:%s", graph->scale_sws_opts); | ||
| 363 | else | ||
| 364 | snprintf(scale_args, sizeof(scale_args), "0:0"); | ||
| 365 | |||
| 362 | if ((ret = avfilter_graph_create_filter(&convert, filter, | 366 | if ((ret = avfilter_graph_create_filter(&convert, filter, |
| 363 | inst_name, scale_args, NULL, | 367 | inst_name, scale_args, NULL, |
| 364 | graph)) < 0) | 368 | graph)) < 0) |