Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2013-04-11 03:25:08 +0400
committerMichael Niedermayer <michaelni@gmx.at>2013-04-11 03:32:08 +0400
commit314be1933e3a39abd6576184786703701ced4415 (patch)
tree12d4b0da77869fe4adf9b7094bd0bf46908537ef /libavfilter/af_amix.c
parentab6091f8e21df7280f2b50fd6226bbc130fb060a (diff)
parentac20e3ab8ed497549ee2a62754f01eee5e7a5066 (diff)
Merge commit 'ac20e3ab8ed497549ee2a62754f01eee5e7a5066'
* commit 'ac20e3ab8ed497549ee2a62754f01eee5e7a5066': af_amix: switch to an AVOptions-based system. Conflicts: libavfilter/af_amix.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
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 dcb24b0f3a..a1f6747c51 100644
--- a/libavfilter/af_amix.c
+++ b/libavfilter/af_amix.c
@@ -486,14 +486,7 @@ fail:
static int init(AVFilterContext *ctx, const char *args)
{
MixContext *s = ctx->priv;
- int i, ret;
-
- s->class = &amix_class;
- av_opt_set_defaults(s);
-
- if ((ret = av_set_options_string(s, args, "=", ":")) < 0)
- return ret;
- av_opt_free(s);
+ int i;
for (i = 0; i < s->nb_inputs; i++) {
char name[32];
@@ -556,6 +549,7 @@ AVFilter avfilter_af_amix = {
.name = "amix",
.description = NULL_IF_CONFIG_SMALL("Audio mixing."),
.priv_size = sizeof(MixContext),
+ .priv_class = &amix_class,
.init = init,
.uninit = uninit,
@@ -563,5 +557,4 @@ AVFilter avfilter_af_amix = {
.inputs = NULL,
.outputs = avfilter_af_amix_outputs,
- .priv_class = &amix_class,
};