summaryrefslogtreecommitdiff
path: root/fftools/ffmpeg_filter.c
diff options
context:
space:
mode:
authorNicolas George <george@nsup.org>2020-08-14 13:06:34 +0200
committerNicolas George <george@nsup.org>2020-09-08 14:16:08 +0200
commit697fb09e3dd187b76f1bc57516fcbe482b4d89e2 (patch)
tree8c4c32e4c3cfae3ba0d3df6339781d92b1f18058 /fftools/ffmpeg_filter.c
parent0d942357f6ea918473ab0140b8deb37af84b094d (diff)
ffmpeg: add auto_conversion_filters option.
Diffstat (limited to 'fftools/ffmpeg_filter.c')
-rw-r--r--fftools/ffmpeg_filter.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/fftools/ffmpeg_filter.c b/fftools/ffmpeg_filter.c
index 4784e8a575..3c507f8c1d 100644
--- a/fftools/ffmpeg_filter.c
+++ b/fftools/ffmpeg_filter.c
@@ -1104,6 +1104,8 @@ int configure_filtergraph(FilterGraph *fg)
configure_output_filter(fg, fg->outputs[i], cur);
avfilter_inout_free(&outputs);
+ if (!auto_conversion_filters)
+ avfilter_graph_set_auto_convert(fg->graph, AVFILTER_AUTO_CONVERT_NONE);
if ((ret = avfilter_graph_config(fg->graph, NULL)) < 0)
goto fail;