diff --git a/libavfilter/avfilter.c b/libavfilter/avfilter.c index 84a6f01973..dd0df50eeb 100644 --- a/libavfilter/avfilter.c +++ b/libavfilter/avfilter.c @@ -666,6 +666,7 @@ int avfilter_init_filter(AVFilterContext *filter, const char *args, void *opaque !strcmp(filter->filter->name, "drawtext" ) || !strcmp(filter->filter->name, "fade" ) || !strcmp(filter->filter->name, "fieldorder") || + !strcmp(filter->filter->name, "fps" ) || !strcmp(filter->filter->name, "format") || !strcmp(filter->filter->name, "noformat") || !strcmp(filter->filter->name, "resample") diff --git a/libavfilter/vf_fps.c b/libavfilter/vf_fps.c index 9ff69e1649..d9f610a00a 100644 --- a/libavfilter/vf_fps.c +++ b/libavfilter/vf_fps.c @@ -273,8 +273,6 @@ static const AVFilterPad avfilter_vf_fps_outputs[] = { { NULL } }; -static const char *const shorthand[] = { "fps", "round", NULL }; - AVFilter avfilter_vf_fps = { .name = "fps", .description = NULL_IF_CONFIG_SMALL("Force constant framerate"), @@ -283,9 +281,8 @@ AVFilter avfilter_vf_fps = { .uninit = uninit, .priv_size = sizeof(FPSContext), + .priv_class = &fps_class, .inputs = avfilter_vf_fps_inputs, .outputs = avfilter_vf_fps_outputs, - .priv_class = &fps_class, - .shorthand = shorthand, };