]> git.sesse.net Git - ffmpeg/blobdiff - libavfilter/vf_format.c
Merge commit 'de2e5777e225e75813daf2373c95e223651fd89a'
[ffmpeg] / libavfilter / vf_format.c
index c14e12704d061a46f218fcc06e4b7259e03a792d..25b3d19952a9a26d1dccee8e016183dd1a4544a4 100644 (file)
@@ -109,12 +109,8 @@ static int query_formats_format(AVFilterContext *ctx)
     return 0;
 }
 
-static const AVClass format_class = {
-    .class_name = "format",
-    .item_name  = av_default_item_name,
-    .option     = options,
-    .version    = LIBAVUTIL_VERSION_INT,
-};
+#define format_options options
+AVFILTER_DEFINE_CLASS(format);
 
 static const AVFilterPad avfilter_vf_format_inputs[] = {
     {
@@ -156,12 +152,8 @@ static int query_formats_noformat(AVFilterContext *ctx)
     return 0;
 }
 
-static const AVClass noformat_class = {
-    .class_name = "noformat",
-    .item_name  = av_default_item_name,
-    .option     = options,
-    .version    = LIBAVUTIL_VERSION_INT,
-};
+#define noformat_options options
+AVFILTER_DEFINE_CLASS(noformat);
 
 static const AVFilterPad avfilter_vf_noformat_inputs[] = {
     {