Commit e8ae23db authored by Paul B Mahol's avatar Paul B Mahol

avfilter/af_sidechaincompress: change default makeup gain to 1

This avoids producing out of range or clipped samples.
Signed-off-by: 's avatarPaul B Mahol <onemda@gmail.com>
parent 64ea4d10
......@@ -357,8 +357,8 @@ The filter accepts the following options:
Set input gain. Default is 1. Range is between 0.015625 and 64.
@item threshold
If a signal of second stream rises above this level it will affect the gain
reduction of the first stream.
If a signal of stream rises above this level it will affect the gain
reduction.
By default it is 0.125. Range is between 0.00097563 and 1.
@item ratio
......@@ -376,7 +376,7 @@ reduction is decreased again. Default is 250. Range is between 0.01 and 9000.
@item makeup
Set the amount by how much signal will be amplified after processing.
Default is 2. Range is from 1 and 64.
Default is 1. Range is from 1 to 64.
@item knee
Curve the sharp knee around the threshold to enter gain reduction more softly.
......@@ -3340,7 +3340,7 @@ reduction is decreased again. Default is 250. Range is between 0.01 and 9000.
@item makeup
Set the amount by how much signal will be amplified after processing.
Default is 2. Range is from 1 and 64.
Default is 1. Range is from 1 to 64.
@item knee
Curve the sharp knee around the threshold to enter gain reduction more softly.
......
......@@ -72,7 +72,7 @@ static const AVOption options[] = {
{ "ratio", "set ratio", OFFSET(ratio), AV_OPT_TYPE_DOUBLE, {.dbl=2}, 1, 20, A|F },
{ "attack", "set attack", OFFSET(attack), AV_OPT_TYPE_DOUBLE, {.dbl=20}, 0.01, 2000, A|F },
{ "release", "set release", OFFSET(release), AV_OPT_TYPE_DOUBLE, {.dbl=250}, 0.01, 9000, A|F },
{ "makeup", "set make up gain", OFFSET(makeup), AV_OPT_TYPE_DOUBLE, {.dbl=2}, 1, 64, A|F },
{ "makeup", "set make up gain", OFFSET(makeup), AV_OPT_TYPE_DOUBLE, {.dbl=1}, 1, 64, A|F },
{ "knee", "set knee", OFFSET(knee), AV_OPT_TYPE_DOUBLE, {.dbl=2.82843}, 1, 8, A|F },
{ "link", "set link type", OFFSET(link), AV_OPT_TYPE_INT, {.i64=0}, 0, 1, A|F, "link" },
{ "average", 0, 0, AV_OPT_TYPE_CONST, {.i64=0}, 0, 0, A|F, "link" },
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment