Browse code

abuffer: switch to an AVOptions-based shorthand system.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>

Michael Niedermayer authored on 2013/04/12 16:55:01
Showing 2 changed files
... ...
@@ -683,7 +683,6 @@ static int process_options(AVFilterContext *ctx, AVDictionary **options,
683 683
 
684 684
 // TODO: drop me
685 685
 static const char *const filters_left_to_update[] = {
686
-    "abuffer",
687 686
 #if FF_API_ACONVERT_FILTER
688 687
     "aconvert",
689 688
 #endif
... ...
@@ -345,8 +345,8 @@ static const AVOption abuffer_options[] = {
345 345
     { "time_base",      NULL, OFFSET(time_base),           AV_OPT_TYPE_RATIONAL, { .dbl = 0 }, 0, INT_MAX, A },
346 346
     { "sample_rate",    NULL, OFFSET(sample_rate),         AV_OPT_TYPE_INT,      { .i64 = 0 }, 0, INT_MAX, A },
347 347
     { "sample_fmt",     NULL, OFFSET(sample_fmt_str),      AV_OPT_TYPE_STRING,             .flags = A },
348
-    { "channels",       NULL, OFFSET(channels),            AV_OPT_TYPE_INT,      { .i64 = 0 }, 0, INT_MAX, A },
349 348
     { "channel_layout", NULL, OFFSET(channel_layout_str),  AV_OPT_TYPE_STRING,             .flags = A },
349
+    { "channels",       NULL, OFFSET(channels),            AV_OPT_TYPE_INT,      { .i64 = 0 }, 0, INT_MAX, A },
350 350
     { NULL },
351 351
 };
352 352
 
... ...
@@ -532,9 +532,6 @@ static const AVFilterPad avfilter_asrc_abuffer_outputs[] = {
532 532
     { NULL }
533 533
 };
534 534
 
535
-static const char *const abuffer_shorthand[] = { "time_base", "sample_rate",
536
-    "sample_fmt", "channel_layout", NULL };
537
-
538 535
 AVFilter avfilter_asrc_abuffer = {
539 536
     .name          = "abuffer",
540 537
     .description   = NULL_IF_CONFIG_SMALL("Buffer audio frames, and make them accessible to the filterchain."),
... ...
@@ -547,5 +544,4 @@ AVFilter avfilter_asrc_abuffer = {
547 547
     .inputs    = NULL,
548 548
     .outputs   = avfilter_asrc_abuffer_outputs,
549 549
     .priv_class = &abuffer_class,
550
-    .shorthand = abuffer_shorthand,
551 550
 };