lavfi/trim: make use of AVFILTER_DEFINE_CLASS
authorPaul B Mahol <onemda@gmail.com>
Sun, 26 May 2013 19:31:35 +0000 (19:31 +0000)
committerPaul B Mahol <onemda@gmail.com>
Mon, 27 May 2013 09:55:40 +0000 (09:55 +0000)
Signed-off-by: Paul B Mahol <onemda@gmail.com>
libavfilter/trim.c

index 384028d..96c30b4 100644 (file)
@@ -188,12 +188,7 @@ static const AVOption trim_options[] = {
 };
 #undef FLAGS
 
-static const AVClass trim_class = {
-    .class_name = "trim",
-    .item_name  = av_default_item_name,
-    .option     = trim_options,
-    .version    = LIBAVUTIL_VERSION_INT,
-};
+AVFILTER_DEFINE_CLASS(trim);
 
 static const AVFilterPad trim_inputs[] = {
     {
@@ -350,12 +345,7 @@ static const AVOption atrim_options[] = {
 };
 #undef FLAGS
 
-static const AVClass atrim_class = {
-    .class_name = "atrim",
-    .item_name  = av_default_item_name,
-    .option     = atrim_options,
-    .version    = LIBAVUTIL_VERSION_INT,
-};
+AVFILTER_DEFINE_CLASS(atrim);
 
 static const AVFilterPad atrim_inputs[] = {
     {