aboutsummaryrefslogtreecommitdiffstats
path: root/libavfilter/stack_internal.c
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2023-03-15 18:57:36 +0100
committerAnton Khirnov <anton@khirnov.net>2023-03-24 10:16:51 +0100
commit632c34993195f716e9fa575af3de80d07fd50991 (patch)
treea03264f4f07c343b52be4d03a6becc89fa4d9b97 /libavfilter/stack_internal.c
parent30cea1d39b94716f2e24f6d5b07e5bc686fdbaf6 (diff)
downloadffmpeg-632c34993195f716e9fa575af3de80d07fd50991.tar.gz
lavfi: add a flag for filters able to work with hw_device_ctx
This way the caller can set it just on the filters that can make use of it.
Diffstat (limited to 'libavfilter/stack_internal.c')
-rw-r--r--libavfilter/stack_internal.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavfilter/stack_internal.c b/libavfilter/stack_internal.c
index 0697ebdd12..1ee20d66cf 100644
--- a/libavfilter/stack_internal.c
+++ b/libavfilter/stack_internal.c
@@ -333,7 +333,7 @@ static const AVFilterPad stack_outputs[] = {
{ NULL } \
}
-#define DEFINE_STACK_FILTER(category, api, capi) \
+#define DEFINE_STACK_FILTER(category, api, capi, filter_flags) \
static const AVClass category##_##api##_class = { \
.class_name = #category "_" #api, \
.item_name = av_default_item_name, \
@@ -351,5 +351,5 @@ static const AVFilterPad stack_outputs[] = {
FILTER_QUERY_FUNC(api##_stack_query_formats), \
FILTER_OUTPUTS(stack_outputs), \
.flags_internal = FF_FILTER_FLAG_HWFRAME_AWARE, \
- .flags = AVFILTER_FLAG_DYNAMIC_INPUTS, \
+ .flags = AVFILTER_FLAG_DYNAMIC_INPUTS | filter_flags, \
}