* commit 'f13ab29925883b4245da4129694af3af378d67be': vf_fps: switch to an AVOptions-based system. Conflicts: libavfilter/vf_fps.c
Unified · Split
| @@ -666,6 +666,7 @@ int avfilter_init_filter(AVFilterContext *filter, const char *args, void *opaque · 665 unmodified lines | |||
| 666 | !strcmp(filter->filter->name, "drawtext" ) || | 666 | !strcmp(filter->filter->name, "drawtext" ) || |
| 667 | !strcmp(filter->filter->name, "fade" ) || | 667 | !strcmp(filter->filter->name, "fade" ) || |
| 668 | !strcmp(filter->filter->name, "fieldorder") || | 668 | !strcmp(filter->filter->name, "fieldorder") || |
| 669 | !strcmp(filter->filter->name, "fps" ) || | ||
| 669 | !strcmp(filter->filter->name, "format") || | 670 | !strcmp(filter->filter->name, "format") || |
| 670 | !strcmp(filter->filter->name, "noformat") || | 671 | !strcmp(filter->filter->name, "noformat") || |
| 671 | !strcmp(filter->filter->name, "resample") | 672 | !strcmp(filter->filter->name, "resample") |
| @@ -273,8 +273,6 @@ static const AVFilterPad avfilter_vf_fps_outputs[] = { · 272 unmodified lines | |||
| 273 | { NULL } | 273 | { NULL } |
| 274 | }; | 274 | }; |
| 275 | 275 | ||
| 276 | static const char *const shorthand[] = { "fps", "round", NULL }; | ||
| 277 | |||
| 278 | AVFilter avfilter_vf_fps = { | 276 | AVFilter avfilter_vf_fps = { |
| 279 | .name = "fps", | 277 | .name = "fps", |
| 280 | .description = NULL_IF_CONFIG_SMALL("Force constant framerate"), | 278 | .description = NULL_IF_CONFIG_SMALL("Force constant framerate"), |
| @@ -283,9 +281,8 @@ AVFilter avfilter_vf_fps = { · 2 unmodified lines | |||
| 283 | .uninit = uninit, | 281 | .uninit = uninit, |
| 284 | 282 | ||
| 285 | .priv_size = sizeof(FPSContext), | 283 | .priv_size = sizeof(FPSContext), |
| 284 | .priv_class = &fps_class, | ||
| 286 | 285 | ||
| 287 | .inputs = avfilter_vf_fps_inputs, | 286 | .inputs = avfilter_vf_fps_inputs, |
| 288 | .outputs = avfilter_vf_fps_outputs, | 287 | .outputs = avfilter_vf_fps_outputs, |
| 289 | .priv_class = &fps_class, | ||
| 290 | .shorthand = shorthand, | ||
| 291 | }; | 288 | }; |