lavfi/channelmap: make use of AVFILTER_DEFINE_CLASS
Signed-off-by: Paul B Mahol <onemda@gmail.com>
This commit is contained in:
parent
6008b5abbb
commit
beda41886e
@ -69,7 +69,7 @@ typedef struct ChannelMapContext {
|
|||||||
#define OFFSET(x) offsetof(ChannelMapContext, x)
|
#define OFFSET(x) offsetof(ChannelMapContext, x)
|
||||||
#define A AV_OPT_FLAG_AUDIO_PARAM
|
#define A AV_OPT_FLAG_AUDIO_PARAM
|
||||||
#define F AV_OPT_FLAG_FILTERING_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.",
|
{ "map", "A comma-separated list of input channel numbers in output order.",
|
||||||
OFFSET(mapping_str), AV_OPT_TYPE_STRING, .flags = A|F },
|
OFFSET(mapping_str), AV_OPT_TYPE_STRING, .flags = A|F },
|
||||||
{ "channel_layout", "Output channel layout.",
|
{ "channel_layout", "Output channel layout.",
|
||||||
@ -77,12 +77,7 @@ static const AVOption options[] = {
|
|||||||
{ NULL },
|
{ NULL },
|
||||||
};
|
};
|
||||||
|
|
||||||
static const AVClass channelmap_class = {
|
AVFILTER_DEFINE_CLASS(channelmap);
|
||||||
.class_name = "channel map filter",
|
|
||||||
.item_name = av_default_item_name,
|
|
||||||
.option = options,
|
|
||||||
.version = LIBAVUTIL_VERSION_INT,
|
|
||||||
};
|
|
||||||
|
|
||||||
static char* split(char *message, char delim) {
|
static char* split(char *message, char delim) {
|
||||||
char *next = strchr(message, delim);
|
char *next = strchr(message, delim);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user