Browse Source

lavfi/avfiltergraph: avoid to print "(null)" in the scale args

Fix parsing.
tags/n1.1
Stefano Sabatini 12 years ago
parent
commit
8f37a1e8dc
1 changed files with 5 additions and 1 deletions
  1. +5
    -1
      libavfilter/avfiltergraph.c

+ 5
- 1
libavfilter/avfiltergraph.c View File

@@ -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)


Loading…
Cancel
Save