diff options
author | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2025-01-09 02:42:11 +0100 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2025-01-12 15:41:40 +0100 |
commit | 7ab7d9c3c06c918d4a5f1c04396f9ce8584ed0e3 (patch) | |
tree | 34474ac1c24a649f9103afbad00c7f18ebbbec7d /libavfilter/split.c | |
parent | 9bbab3255b7dd0a9ae3b37bf689ec4dc36124ff3 (diff) | |
download | ffmpeg-7ab7d9c3c06c918d4a5f1c04396f9ce8584ed0e3.tar.gz |
avfilter/avfilter: Add FFFilter, hide internals of AVFilter
This patch is analogous to 20f972701806be20a77f808db332d9489343bb78:
It hides the internal part of AVFilter by adding a new internal
structure FFFilter (declared in filters.h) that has an AVFilter
as its first member; the internal part of AVFilter is moved to
this new structure.
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavfilter/split.c')
-rw-r--r-- | libavfilter/split.c | 22 |
1 files changed, 10 insertions, 12 deletions
diff --git a/libavfilter/split.c b/libavfilter/split.c index 8309cdb4ea..bf004358d8 100644 --- a/libavfilter/split.c +++ b/libavfilter/split.c @@ -131,26 +131,24 @@ static const AVOption options[] = { AVFILTER_DEFINE_CLASS_EXT(split, "(a)split", options); -const AVFilter ff_vf_split = { - .name = "split", - .description = NULL_IF_CONFIG_SMALL("Pass on the input to N video outputs."), +const FFFilter ff_vf_split = { + .p.name = "split", + .p.description = NULL_IF_CONFIG_SMALL("Pass on the input to N video outputs."), + .p.priv_class = &split_class, + .p.flags = AVFILTER_FLAG_DYNAMIC_OUTPUTS | AVFILTER_FLAG_METADATA_ONLY, .priv_size = sizeof(SplitContext), - .priv_class = &split_class, .init = split_init, .activate = activate, FILTER_INPUTS(ff_video_default_filterpad), - .outputs = NULL, - .flags = AVFILTER_FLAG_DYNAMIC_OUTPUTS | AVFILTER_FLAG_METADATA_ONLY, }; -const AVFilter ff_af_asplit = { - .name = "asplit", - .description = NULL_IF_CONFIG_SMALL("Pass on the audio input to N audio outputs."), - .priv_class = &split_class, +const FFFilter ff_af_asplit = { + .p.name = "asplit", + .p.description = NULL_IF_CONFIG_SMALL("Pass on the audio input to N audio outputs."), + .p.priv_class = &split_class, + .p.flags = AVFILTER_FLAG_DYNAMIC_OUTPUTS | AVFILTER_FLAG_METADATA_ONLY, .priv_size = sizeof(SplitContext), .init = split_init, .activate = activate, FILTER_INPUTS(ff_audio_default_filterpad), - .outputs = NULL, - .flags = AVFILTER_FLAG_DYNAMIC_OUTPUTS | AVFILTER_FLAG_METADATA_ONLY, }; |