lavfi/split: use AVFILTER_DEFINE_CLASS to define class
authorStefano Sabatini <stefasab@gmail.com>
Mon, 15 Apr 2013 21:59:47 +0000 (23:59 +0200)
committerStefano Sabatini <stefasab@gmail.com>
Tue, 16 Apr 2013 20:15:24 +0000 (22:15 +0200)
libavfilter/split.c

index 6a52073..251ea2e 100644 (file)
@@ -97,19 +97,11 @@ static const AVOption options[] = {
     { NULL },
 };
 
-static const AVClass split_class = {
-    .class_name = "split",
-    .item_name  = av_default_item_name,
-    .option     = options,
-    .version    = LIBAVUTIL_VERSION_INT,
-};
+#define split_options options
+AVFILTER_DEFINE_CLASS(split);
 
-static const AVClass asplit_class = {
-    .class_name = "asplit",
-    .item_name  = av_default_item_name,
-    .option     = options,
-    .version    = LIBAVUTIL_VERSION_INT,
-};
+#define asplit_options options
+AVFILTER_DEFINE_CLASS(asplit);
 
 static const AVFilterPad avfilter_vf_split_inputs[] = {
     {