Commit e600d062 authored by Clément Bœsch's avatar Clément Bœsch

lavfi/perms: remove unecessary indirection after f7324c06.

parent bd03afb5
...@@ -50,7 +50,7 @@ static const AVOption options[] = { ...@@ -50,7 +50,7 @@ static const AVOption options[] = {
{ NULL } { NULL }
}; };
static av_cold int init(AVFilterContext *ctx, const char *args, const AVClass *class) static av_cold int init(AVFilterContext *ctx, const char *args)
{ {
PermsContext *perms = ctx->priv; PermsContext *perms = ctx->priv;
...@@ -108,11 +108,6 @@ static const char *const shorthand[] = { "mode", NULL }; ...@@ -108,11 +108,6 @@ static const char *const shorthand[] = { "mode", NULL };
#define aperms_options options #define aperms_options options
AVFILTER_DEFINE_CLASS(aperms); AVFILTER_DEFINE_CLASS(aperms);
static av_cold int aperms_init(AVFilterContext *ctx, const char *args)
{
return init(ctx, args, &aperms_class);
}
static const AVFilterPad aperms_inputs[] = { static const AVFilterPad aperms_inputs[] = {
{ {
.name = "default", .name = "default",
...@@ -133,7 +128,7 @@ static const AVFilterPad aperms_outputs[] = { ...@@ -133,7 +128,7 @@ static const AVFilterPad aperms_outputs[] = {
AVFilter avfilter_af_aperms = { AVFilter avfilter_af_aperms = {
.name = "aperms", .name = "aperms",
.description = NULL_IF_CONFIG_SMALL("Set permissions for the output audio frame."), .description = NULL_IF_CONFIG_SMALL("Set permissions for the output audio frame."),
.init = aperms_init, .init = init,
.priv_size = sizeof(PermsContext), .priv_size = sizeof(PermsContext),
.inputs = aperms_inputs, .inputs = aperms_inputs,
.outputs = aperms_outputs, .outputs = aperms_outputs,
...@@ -147,11 +142,6 @@ AVFilter avfilter_af_aperms = { ...@@ -147,11 +142,6 @@ AVFilter avfilter_af_aperms = {
#define perms_options options #define perms_options options
AVFILTER_DEFINE_CLASS(perms); AVFILTER_DEFINE_CLASS(perms);
static av_cold int perms_init(AVFilterContext *ctx, const char *args)
{
return init(ctx, args, &perms_class);
}
static const AVFilterPad perms_inputs[] = { static const AVFilterPad perms_inputs[] = {
{ {
.name = "default", .name = "default",
...@@ -172,7 +162,7 @@ static const AVFilterPad perms_outputs[] = { ...@@ -172,7 +162,7 @@ static const AVFilterPad perms_outputs[] = {
AVFilter avfilter_vf_perms = { AVFilter avfilter_vf_perms = {
.name = "perms", .name = "perms",
.description = NULL_IF_CONFIG_SMALL("Set permissions for the output video frame."), .description = NULL_IF_CONFIG_SMALL("Set permissions for the output video frame."),
.init = perms_init, .init = init,
.priv_size = sizeof(PermsContext), .priv_size = sizeof(PermsContext),
.inputs = perms_inputs, .inputs = perms_inputs,
.outputs = perms_outputs, .outputs = perms_outputs,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment