use AVFILTER_DEFINE_CLASS for defining the filter classes
Unified · Split
| @@ -859,13 +859,7 @@ static const AVOption zscale_options[] = { · 858 unmodified lines | ||
| 859 | 859 | { NULL } |
| 860 | 860 | }; |
| 861 | 861 | |
| 862 | −static const AVClass zscale_class = { | |
| 863 | − .class_name = "zscale", | |
| 864 | − .item_name = av_default_item_name, | |
| 865 | − .option = zscale_options, | |
| 866 | − .version = LIBAVUTIL_VERSION_INT, | |
| 867 | − .category = AV_CLASS_CATEGORY_FILTER, | |
| 868 | −}; | |
| 862 | +AVFILTER_DEFINE_CLASS(zscale); | |
| 869 | 863 | |
| 870 | 864 | static const AVFilterPad avfilter_vf_zscale_inputs[] = { |
| 871 | 865 | { |