aboutsummaryrefslogtreecommitdiffstats
path: root/libavfilter/f_perms.c
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2021-11-22 14:39:11 +0100
committerAnton Khirnov <anton@khirnov.net>2021-12-04 14:07:19 +0100
commitb9c928a486fda3c0d79b153591ac86beb1c53708 (patch)
tree4cbc1fe372de041aa3a147c60a31bf5fba532356 /libavfilter/f_perms.c
parent944c34a94c3150fc84816c3288cc6f2143f1581b (diff)
downloadffmpeg-b9c928a486fda3c0d79b153591ac86beb1c53708.tar.gz
avfilter: add AVFILTER_FLAG_METADATA_ONLY
This flag allows distinguishing between filters that actually modify the data and those that only modify metadata or gather some stream information.
Diffstat (limited to 'libavfilter/f_perms.c')
-rw-r--r--libavfilter/f_perms.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/libavfilter/f_perms.c b/libavfilter/f_perms.c
index 470db45bee..6e75b2517b 100644
--- a/libavfilter/f_perms.c
+++ b/libavfilter/f_perms.c
@@ -138,7 +138,8 @@ const AVFilter ff_af_aperms = {
.priv_size = sizeof(PermsContext),
FILTER_INPUTS(aperms_inputs),
FILTER_OUTPUTS(aperms_outputs),
- .flags = AVFILTER_FLAG_SUPPORT_TIMELINE_GENERIC,
+ .flags = AVFILTER_FLAG_SUPPORT_TIMELINE_GENERIC |
+ AVFILTER_FLAG_METADATA_ONLY,
};
#endif /* CONFIG_APERMS_FILTER */
@@ -167,6 +168,7 @@ const AVFilter ff_vf_perms = {
FILTER_INPUTS(perms_inputs),
FILTER_OUTPUTS(perms_outputs),
.priv_class = &perms_class,
- .flags = AVFILTER_FLAG_SUPPORT_TIMELINE_GENERIC,
+ .flags = AVFILTER_FLAG_SUPPORT_TIMELINE_GENERIC |
+ AVFILTER_FLAG_METADATA_ONLY,
};
#endif /* CONFIG_PERMS_FILTER */