summaryrefslogtreecommitdiff
path: root/libavfilter/vf_setparams.c
diff options
context:
space:
mode:
authorPavel Koshevoy <pkoshevoy@gmail.com>2020-09-21 21:40:27 -0600
committerPavel Koshevoy <pkoshevoy@gmail.com>2020-09-27 19:15:44 -0600
commit5bbf58ab876279ca1a5a2f30563f271c99b93e62 (patch)
treec21548c5e8ece9f5c0ee0df67acdbb57440ce176 /libavfilter/vf_setparams.c
parent5bf22519cec50cceada06bb58a9d1fa2bb30d1ec (diff)
avfilter/setparams: add FF_FILTER_FLAG_HWFRAME_AWARE
Allow setparams to be used with hw backed frames and avoid an assertion failure in avfilter_config_links.
Diffstat (limited to 'libavfilter/vf_setparams.c')
-rw-r--r--libavfilter/vf_setparams.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/libavfilter/vf_setparams.c b/libavfilter/vf_setparams.c
index 689097fac0..72a69e3fc2 100644
--- a/libavfilter/vf_setparams.c
+++ b/libavfilter/vf_setparams.c
@@ -169,6 +169,7 @@ AVFilter ff_vf_setparams = {
.priv_class = &setparams_class,
.inputs = inputs,
.outputs = outputs,
+ .flags_internal = FF_FILTER_FLAG_HWFRAME_AWARE,
};
#if CONFIG_SETRANGE_FILTER
@@ -208,6 +209,7 @@ AVFilter ff_vf_setrange = {
.priv_class = &setrange_class,
.inputs = inputs,
.outputs = outputs,
+ .flags_internal = FF_FILTER_FLAG_HWFRAME_AWARE,
};
#endif /* CONFIG_SETRANGE_FILTER */
@@ -242,5 +244,6 @@ AVFilter ff_vf_setfield = {
.priv_class = &setfield_class,
.inputs = inputs,
.outputs = outputs,
+ .flags_internal = FF_FILTER_FLAG_HWFRAME_AWARE,
};
#endif /* CONFIG_SETFIELD_FILTER */