Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mpc-hc/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefano Sabatini <stefasab@gmail.com>2012-10-17 12:14:15 +0400
committerStefano Sabatini <stefasab@gmail.com>2012-10-21 23:44:53 +0400
commit8f37a1e8dc93df5530df45a6f6fcf2d8dd3722e0 (patch)
treec47782277c458b3e99cde751669b034a78159606 /libavfilter/avfiltergraph.c
parent2969abd908f12c7f6a49aa5a1c14a33af5d094ae (diff)
lavfi/avfiltergraph: avoid to print "(null)" in the scale args
Fix parsing.
Diffstat (limited to 'libavfilter/avfiltergraph.c')
-rw-r--r--libavfilter/avfiltergraph.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/libavfilter/avfiltergraph.c b/libavfilter/avfiltergraph.c
index 980cdf2877..86be2c4a8c 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)