aboutsummaryrefslogtreecommitdiffstats
path: root/libavfilter/af_amix.c
diff options
context:
space:
mode:
authorStefano Sabatini <stefasab@gmail.com>2012-06-22 14:33:09 +0200
committerStefano Sabatini <stefasab@gmail.com>2012-06-22 23:11:43 +0200
commitc17808cebd2b9cf734dfa7f652ed49a3b3289386 (patch)
tree809dfdeee9db61d718252717b8f21f423e067417 /libavfilter/af_amix.c
parent012aa12a6bff8333da2165256bae312f6844ab65 (diff)
downloadffmpeg-c17808cebd2b9cf734dfa7f652ed49a3b3289386.tar.gz
lavfi: define macro AVFILTER_DEFINE_CLASS
The macro can be used to define consistently the internal class of a filter, save some typing and factorize.
Diffstat (limited to 'libavfilter/af_amix.c')
-rw-r--r--libavfilter/af_amix.c11
1 files changed, 2 insertions, 9 deletions
diff --git a/libavfilter/af_amix.c b/libavfilter/af_amix.c
index dcfa5e4f94..2fc5d0efa7 100644
--- a/libavfilter/af_amix.c
+++ b/libavfilter/af_amix.c
@@ -173,7 +173,7 @@ typedef struct MixContext {
#define OFFSET(x) offsetof(MixContext, x)
#define A AV_OPT_FLAG_AUDIO_PARAM
-static const AVOption options[] = {
+static const AVOption amix_options[] = {
{ "inputs", "Number of inputs.",
OFFSET(nb_inputs), AV_OPT_TYPE_INT, { 2 }, 1, 32, A },
{ "duration", "How to determine the end-of-stream.",
@@ -187,14 +187,7 @@ static const AVOption options[] = {
{ NULL },
};
-static const AVClass amix_class = {
- .class_name = "amix",
- .item_name = av_default_item_name,
- .option = options,
- .version = LIBAVUTIL_VERSION_INT,
- .category = AV_CLASS_CATEGORY_FILTER,
-};
-
+AVFILTER_DEFINE_CLASS(amix);
/**
* Update the scaling factors to apply to each input during mixing.