mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-27 09:52:17 +00:00
af_amix: switch to an AVOptions-based system.
This commit is contained in:
parent
7536c67104
commit
ac20e3ab8e
@ -491,16 +491,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) {
|
||||
av_log(ctx, AV_LOG_ERROR, "Error parsing options string '%s'.\n", args);
|
||||
return ret;
|
||||
}
|
||||
av_opt_free(s);
|
||||
int i;
|
||||
|
||||
for (i = 0; i < s->nb_inputs; i++) {
|
||||
char name[32];
|
||||
@ -563,6 +554,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,
|
||||
|
Loading…
Reference in New Issue
Block a user