diff options
author | Paul B Mahol <onemda@gmail.com> | 2013-05-27 11:30:31 +0000 |
---|---|---|
committer | Paul B Mahol <onemda@gmail.com> | 2013-05-27 11:31:52 +0000 |
commit | beda41886ead152e8bbbd7d3fc33e261b346da4b (patch) | |
tree | d2ac1bc4832f41197a2f52e9a8aa4df3808b7dff | |
parent | 6008b5abbb17c747d894edc7f7000da514420398 (diff) | |
download | ffmpeg-beda41886ead152e8bbbd7d3fc33e261b346da4b.tar.gz |
lavfi/channelmap: make use of AVFILTER_DEFINE_CLASS
Signed-off-by: Paul B Mahol <onemda@gmail.com>
-rw-r--r-- | libavfilter/af_channelmap.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/libavfilter/af_channelmap.c b/libavfilter/af_channelmap.c index 50e961cd4b..4daf62c4bd 100644 --- a/libavfilter/af_channelmap.c +++ b/libavfilter/af_channelmap.c @@ -69,7 +69,7 @@ typedef struct ChannelMapContext { #define OFFSET(x) offsetof(ChannelMapContext, x) #define A AV_OPT_FLAG_AUDIO_PARAM #define F AV_OPT_FLAG_FILTERING_PARAM -static const AVOption options[] = { +static const AVOption channelmap_options[] = { { "map", "A comma-separated list of input channel numbers in output order.", OFFSET(mapping_str), AV_OPT_TYPE_STRING, .flags = A|F }, { "channel_layout", "Output channel layout.", @@ -77,12 +77,7 @@ static const AVOption options[] = { { NULL }, }; -static const AVClass channelmap_class = { - .class_name = "channel map filter", - .item_name = av_default_item_name, - .option = options, - .version = LIBAVUTIL_VERSION_INT, -}; +AVFILTER_DEFINE_CLASS(channelmap); static char* split(char *message, char delim) { char *next = strchr(message, delim); |