Browse code

lavfi/trim: make use of AVFILTER_DEFINE_CLASS

Signed-off-by: Paul B Mahol <onemda@gmail.com>

Paul B Mahol authored on 2013/05/27 04:31:35
Showing 1 changed files
... ...
@@ -188,12 +188,7 @@ static const AVOption trim_options[] = {
188 188
 };
189 189
 #undef FLAGS
190 190
 
191
-static const AVClass trim_class = {
192
-    .class_name = "trim",
193
-    .item_name  = av_default_item_name,
194
-    .option     = trim_options,
195
-    .version    = LIBAVUTIL_VERSION_INT,
196
-};
191
+AVFILTER_DEFINE_CLASS(trim);
197 192
 
198 193
 static const AVFilterPad trim_inputs[] = {
199 194
     {
... ...
@@ -350,12 +345,7 @@ static const AVOption atrim_options[] = {
350 350
 };
351 351
 #undef FLAGS
352 352
 
353
-static const AVClass atrim_class = {
354
-    .class_name = "atrim",
355
-    .item_name  = av_default_item_name,
356
-    .option     = atrim_options,
357
-    .version    = LIBAVUTIL_VERSION_INT,
358
-};
353
+AVFILTER_DEFINE_CLASS(atrim);
359 354
 
360 355
 static const AVFilterPad atrim_inputs[] = {
361 356
     {