mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-02-06 06:44:29 +00:00
avfilter/f_sendcmd: Deduplicate AVClasses
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
parent
fcea114b18
commit
cf724beade
@ -572,10 +572,9 @@ end:
|
|||||||
return AVERROR(ENOSYS);
|
return AVERROR(ENOSYS);
|
||||||
}
|
}
|
||||||
|
|
||||||
#if CONFIG_SENDCMD_FILTER
|
AVFILTER_DEFINE_CLASS_EXT(sendcmd, "(a)sendcmd", options);
|
||||||
|
|
||||||
#define sendcmd_options options
|
#if CONFIG_SENDCMD_FILTER
|
||||||
AVFILTER_DEFINE_CLASS(sendcmd);
|
|
||||||
|
|
||||||
static const AVFilterPad sendcmd_inputs[] = {
|
static const AVFilterPad sendcmd_inputs[] = {
|
||||||
{
|
{
|
||||||
@ -607,9 +606,6 @@ const AVFilter ff_vf_sendcmd = {
|
|||||||
|
|
||||||
#if CONFIG_ASENDCMD_FILTER
|
#if CONFIG_ASENDCMD_FILTER
|
||||||
|
|
||||||
#define asendcmd_options options
|
|
||||||
AVFILTER_DEFINE_CLASS(asendcmd);
|
|
||||||
|
|
||||||
static const AVFilterPad asendcmd_inputs[] = {
|
static const AVFilterPad asendcmd_inputs[] = {
|
||||||
{
|
{
|
||||||
.name = "default",
|
.name = "default",
|
||||||
@ -628,12 +624,12 @@ static const AVFilterPad asendcmd_outputs[] = {
|
|||||||
const AVFilter ff_af_asendcmd = {
|
const AVFilter ff_af_asendcmd = {
|
||||||
.name = "asendcmd",
|
.name = "asendcmd",
|
||||||
.description = NULL_IF_CONFIG_SMALL("Send commands to filters."),
|
.description = NULL_IF_CONFIG_SMALL("Send commands to filters."),
|
||||||
|
.priv_class = &sendcmd_class,
|
||||||
.init = init,
|
.init = init,
|
||||||
.uninit = uninit,
|
.uninit = uninit,
|
||||||
.priv_size = sizeof(SendCmdContext),
|
.priv_size = sizeof(SendCmdContext),
|
||||||
FILTER_INPUTS(asendcmd_inputs),
|
FILTER_INPUTS(asendcmd_inputs),
|
||||||
FILTER_OUTPUTS(asendcmd_outputs),
|
FILTER_OUTPUTS(asendcmd_outputs),
|
||||||
.priv_class = &asendcmd_class,
|
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user