They are currently passed to vf_scale using W:H:FLAGS syntax, while
vf_scale expects W:H:flags=FLAGS.
---
libavfilter/avfiltergraph.c | 2 +-
libavfilter/graphparser.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/libavfilter/avfiltergraph.c b/libavfilter/avfiltergraph.c
index 04d9027..7ed1320 100644
--- a/libavfilter/avfiltergraph.c
+++ b/libavfilter/avfiltergraph.c
@@ -177,7 +177,7 @@ static int query_formats(AVFilterGraph *graph, AVClass
*log_ctx)
/* couldn't merge format lists. auto-insert scale filter */
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);
+ snprintf(scale_args, sizeof(scale_args), "0:0:flags=%s",
graph->scale_sws_opts);
if ((ret = avfilter_graph_create_filter(&scale,
avfilter_get_by_name("scale"),
inst_name,
scale_args, NULL, graph)) < 0)
return ret;
diff --git a/libavfilter/graphparser.c b/libavfilter/graphparser.c
index 90f2936..3ea0603 100644
--- a/libavfilter/graphparser.c
+++ b/libavfilter/graphparser.c
@@ -122,7 +122,7 @@ static int create_filter(AVFilterContext **filt_ctx,
AVFilterGraph *ctx, int ind
}
if (!strcmp(filt_name, "scale") && args && !strstr(args, "flags")) {
- snprintf(tmp_args, sizeof(tmp_args), "%s:%s",
+ snprintf(tmp_args, sizeof(tmp_args), "%s:flags=%s",
args, ctx->scale_sws_opts);
args = tmp_args;
}
--
1.7.9.1
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel