From c378ba19b5c0915a19e1e5d0d698846c6385b46e Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Fri, 12 Apr 2013 09:55:01 +0200 Subject: abuffer: switch to an AVOptions-based shorthand system. Signed-off-by: Michael Niedermayer --- libavfilter/buffersrc.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'libavfilter/buffersrc.c') diff --git a/libavfilter/buffersrc.c b/libavfilter/buffersrc.c index b8dad2391c..1d65a1db35 100644 --- a/libavfilter/buffersrc.c +++ b/libavfilter/buffersrc.c @@ -345,8 +345,8 @@ static const AVOption abuffer_options[] = { { "time_base", NULL, OFFSET(time_base), AV_OPT_TYPE_RATIONAL, { .dbl = 0 }, 0, INT_MAX, A }, { "sample_rate", NULL, OFFSET(sample_rate), AV_OPT_TYPE_INT, { .i64 = 0 }, 0, INT_MAX, A }, { "sample_fmt", NULL, OFFSET(sample_fmt_str), AV_OPT_TYPE_STRING, .flags = A }, - { "channels", NULL, OFFSET(channels), AV_OPT_TYPE_INT, { .i64 = 0 }, 0, INT_MAX, A }, { "channel_layout", NULL, OFFSET(channel_layout_str), AV_OPT_TYPE_STRING, .flags = A }, + { "channels", NULL, OFFSET(channels), AV_OPT_TYPE_INT, { .i64 = 0 }, 0, INT_MAX, A }, { NULL }, }; @@ -532,9 +532,6 @@ static const AVFilterPad avfilter_asrc_abuffer_outputs[] = { { NULL } }; -static const char *const abuffer_shorthand[] = { "time_base", "sample_rate", - "sample_fmt", "channel_layout", NULL }; - AVFilter avfilter_asrc_abuffer = { .name = "abuffer", .description = NULL_IF_CONFIG_SMALL("Buffer audio frames, and make them accessible to the filterchain."), @@ -547,5 +544,4 @@ AVFilter avfilter_asrc_abuffer = { .inputs = NULL, .outputs = avfilter_asrc_abuffer_outputs, .priv_class = &abuffer_class, - .shorthand = abuffer_shorthand, }; -- cgit v1.2.3