summaryrefslogtreecommitdiff
path: root/libavfilter/f_perms.c
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2021-09-10 22:18:12 +0200
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2021-09-19 04:09:06 +0200
commit8435cf2307ce7c79f43767fe16195458b1c74622 (patch)
tree5a4d61b9be77e3f24f2f02ad6189c4fff38f6549 /libavfilter/f_perms.c
parent0eb1f45dd3c5a83600bd1a11bc780a4e0cecfe82 (diff)
downloadffmpeg-8435cf2307ce7c79f43767fe16195458b1c74622.tar.gz
avfilter/f_perms: Deduplicate AVClasses
Reviewed-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavfilter/f_perms.c')
-rw-r--r--libavfilter/f_perms.c10
1 files changed, 3 insertions, 7 deletions
diff --git a/libavfilter/f_perms.c b/libavfilter/f_perms.c
index 8c449fbdfc..470db45bee 100644
--- a/libavfilter/f_perms.c
+++ b/libavfilter/f_perms.c
@@ -111,10 +111,9 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *frame)
return ret;
}
-#if CONFIG_APERMS_FILTER
+AVFILTER_DEFINE_CLASS_EXT(perms, "(a)perms", options);
-#define aperms_options options
-AVFILTER_DEFINE_CLASS(aperms);
+#if CONFIG_APERMS_FILTER
static const AVFilterPad aperms_inputs[] = {
{
@@ -134,20 +133,17 @@ static const AVFilterPad aperms_outputs[] = {
const AVFilter ff_af_aperms = {
.name = "aperms",
.description = NULL_IF_CONFIG_SMALL("Set permissions for the output audio frame."),
+ .priv_class = &perms_class,
.init = init,
.priv_size = sizeof(PermsContext),
FILTER_INPUTS(aperms_inputs),
FILTER_OUTPUTS(aperms_outputs),
- .priv_class = &aperms_class,
.flags = AVFILTER_FLAG_SUPPORT_TIMELINE_GENERIC,
};
#endif /* CONFIG_APERMS_FILTER */
#if CONFIG_PERMS_FILTER
-#define perms_options options
-AVFILTER_DEFINE_CLASS(perms);
-
static const AVFilterPad perms_inputs[] = {
{
.name = "default",