avfilter/f_perms: Deduplicate AVClasses
Reviewed-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
@@ -111,10 +111,9 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *frame)
|
|||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
#if CONFIG_APERMS_FILTER
|
AVFILTER_DEFINE_CLASS_EXT(perms, "(a)perms", options);
|
||||||
|
|
||||||
#define aperms_options options
|
#if CONFIG_APERMS_FILTER
|
||||||
AVFILTER_DEFINE_CLASS(aperms);
|
|
||||||
|
|
||||||
static const AVFilterPad aperms_inputs[] = {
|
static const AVFilterPad aperms_inputs[] = {
|
||||||
{
|
{
|
||||||
@@ -134,20 +133,17 @@ static const AVFilterPad aperms_outputs[] = {
|
|||||||
const AVFilter ff_af_aperms = {
|
const AVFilter ff_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."),
|
||||||
|
.priv_class = &perms_class,
|
||||||
.init = init,
|
.init = init,
|
||||||
.priv_size = sizeof(PermsContext),
|
.priv_size = sizeof(PermsContext),
|
||||||
FILTER_INPUTS(aperms_inputs),
|
FILTER_INPUTS(aperms_inputs),
|
||||||
FILTER_OUTPUTS(aperms_outputs),
|
FILTER_OUTPUTS(aperms_outputs),
|
||||||
.priv_class = &aperms_class,
|
|
||||||
.flags = AVFILTER_FLAG_SUPPORT_TIMELINE_GENERIC,
|
.flags = AVFILTER_FLAG_SUPPORT_TIMELINE_GENERIC,
|
||||||
};
|
};
|
||||||
#endif /* CONFIG_APERMS_FILTER */
|
#endif /* CONFIG_APERMS_FILTER */
|
||||||
|
|
||||||
#if CONFIG_PERMS_FILTER
|
#if CONFIG_PERMS_FILTER
|
||||||
|
|
||||||
#define perms_options options
|
|
||||||
AVFILTER_DEFINE_CLASS(perms);
|
|
||||||
|
|
||||||
static const AVFilterPad perms_inputs[] = {
|
static const AVFilterPad perms_inputs[] = {
|
||||||
{
|
{
|
||||||
.name = "default",
|
.name = "default",
|
||||||
|
Reference in New Issue
Block a user