} PermsContext;
#define OFFSET(x) offsetof(PermsContext, x)
-#define FLAGS AV_OPT_FLAG_FILTERING_PARAM
+#define FLAGS AV_OPT_FLAG_FILTERING_PARAM | AV_OPT_FLAG_AUDIO_PARAM | AV_OPT_FLAG_VIDEO_PARAM
static const AVOption options[] = {
{ "mode", "select permissions mode", OFFSET(mode), AV_OPT_TYPE_INT, {.i64 = MODE_NONE}, MODE_NONE, NB_MODES-1, FLAGS, "mode" },
{ NULL }
};
-static av_cold int init(AVFilterContext *ctx, const char *args)
+static av_cold int init(AVFilterContext *ctx)
{
PermsContext *perms = ctx->priv;
return ret;
}
-static const char *const shorthand[] = { "mode", NULL };
-
#if CONFIG_APERMS_FILTER
#define aperms_options options
.inputs = aperms_inputs,
.outputs = aperms_outputs,
.priv_class = &aperms_class,
- .shorthand = shorthand,
};
#endif /* CONFIG_APERMS_FILTER */
.inputs = perms_inputs,
.outputs = perms_outputs,
.priv_class = &perms_class,
- .shorthand = shorthand,
};
#endif /* CONFIG_PERMS_FILTER */