lavfi/apad: switch to AVOption-based system
authorMatthieu Bouron <matthieu.bouron@gmail.com>
Wed, 10 Apr 2013 23:31:08 +0000 (01:31 +0200)
committerMatthieu Bouron <matthieu.bouron@gmail.com>
Wed, 10 Apr 2013 23:31:08 +0000 (01:31 +0200)
libavfilter/af_apad.c
libavfilter/avfilter.c

index 3c972e9..8c8690e 100644 (file)
@@ -144,8 +144,6 @@ static const AVFilterPad apad_outputs[] = {
     { NULL },
 };
 
-static const char *const shorthand[] = { NULL };
-
 AVFilter avfilter_af_apad = {
     .name          = "apad",
     .description   = NULL_IF_CONFIG_SMALL("Pad audio with silence."),
@@ -154,5 +152,4 @@ AVFilter avfilter_af_apad = {
     .inputs        = apad_inputs,
     .outputs       = apad_outputs,
     .priv_class    = &apad_class,
-    .shorthand     = shorthand,
 };
index ff5b1fb..0b4fcb3 100644 (file)
@@ -658,6 +658,7 @@ int avfilter_init_filter(AVFilterContext *filter, const char *args, void *opaque
     int anton_options =
         !strcmp(filter->filter->name,  "afade"     ) ||
         !strcmp(filter->filter->name,  "aformat") ||
+        !strcmp(filter->filter->name,  "apad"      ) ||
         !strcmp(filter->filter->name,  "ass")     ||
         !strcmp(filter->filter->name,  "blackframe") ||
         !strcmp(filter->filter->name,  "blend"     ) ||