avfilter/vf_weave: Deduplicate AVClasses

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
Andreas Rheinhardt 2021-09-10 23:01:19 +02:00
parent 57bc79e76a
commit f8047180a8
1 changed files with 2 additions and 5 deletions

View File

@ -47,7 +47,7 @@ static const AVOption weave_options[] = {
{ NULL }
};
AVFILTER_DEFINE_CLASS(weave);
AVFILTER_DEFINE_CLASS_EXT(weave, "(double)weave", weave_options);
static int query_formats(AVFilterContext *ctx)
{
@ -210,14 +210,11 @@ static av_cold int init(AVFilterContext *ctx)
return 0;
}
#define doubleweave_options weave_options
AVFILTER_DEFINE_CLASS(doubleweave);
const AVFilter ff_vf_doubleweave = {
.name = "doubleweave",
.description = NULL_IF_CONFIG_SMALL("Weave input video fields into double number of frames."),
.priv_class = &weave_class,
.priv_size = sizeof(WeaveContext),
.priv_class = &doubleweave_class,
.query_formats = query_formats,
.init = init,
.uninit = uninit,