diff options
author | Paul B Mahol <onemda@gmail.com> | 2015-07-02 09:49:26 +0000 |
---|---|---|
committer | Paul B Mahol <onemda@gmail.com> | 2015-07-02 15:36:00 +0000 |
commit | 7ff5a345a46eb76c6acfb9368a1eaec5688b3221 (patch) | |
tree | 63e6fec949db6b9f47f5f31d548c3b9c6f961cfc /libavfilter/af_bs2b.c | |
parent | 6e5864ab294c45814e6d417546f885a0c7dfb7cc (diff) | |
download | ffmpeg-7ff5a345a46eb76c6acfb9368a1eaec5688b3221.tar.gz |
avfilter: use AVFILTER_DEFINE_CLASS()
Signed-off-by: Paul B Mahol <onemda@gmail.com>
Diffstat (limited to 'libavfilter/af_bs2b.c')
-rw-r--r-- | libavfilter/af_bs2b.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/libavfilter/af_bs2b.c b/libavfilter/af_bs2b.c index 592fdec3d7..54d52c5c6e 100644 --- a/libavfilter/af_bs2b.c +++ b/libavfilter/af_bs2b.c @@ -47,7 +47,7 @@ typedef struct Bs2bContext { #define OFFSET(x) offsetof(Bs2bContext, x) #define A AV_OPT_FLAG_AUDIO_PARAM -static const AVOption options[] = { +static const AVOption bs2b_options[] = { { "profile", "Apply a pre-defined crossfeed level", OFFSET(profile), AV_OPT_TYPE_INT, { .i64 = BS2B_DEFAULT_CLEVEL }, 0, INT_MAX, A, "profile" }, { "default", "default profile", 0, AV_OPT_TYPE_CONST, { .i64 = BS2B_DEFAULT_CLEVEL }, 0, 0, A, "profile" }, @@ -60,12 +60,7 @@ static const AVOption options[] = { { NULL }, }; -static const AVClass bs2b_class = { - .class_name = "bs2b filter", - .item_name = av_default_item_name, - .option = options, - .version = LIBAVUTIL_VERSION_INT, -}; +AVFILTER_DEFINE_CLASS(bs2b); static av_cold int init(AVFilterContext *ctx) { |