aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKelly Ledford <kelly.ledford@intel.com>2017-12-12 11:31:23 -0800
committerMichael Niedermayer <michael@niedermayer.cc>2018-01-31 22:56:14 +0100
commitb6731e87c85d7aa1ae783a8e6d90c8fcd31a408f (patch)
tree17d71ad5c855c7cd11c3bdb0ca125de10aaf49be
parent15df68bf5059da248e795e813bc3e40054b7ee22 (diff)
downloadffmpeg-b6731e87c85d7aa1ae783a8e6d90c8fcd31a408f.tar.gz
libavfilter/af_dcshift.c: Fixed repeated spelling error
'threshhold' should be 'threshold' Signed-off-by: Kelly Ledford <kelly.ledford@intel.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc> (cherry picked from commit bc219082bb04b9a4725bfe7e78ce0950244e6e84) Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
-rw-r--r--libavfilter/af_dcshift.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/libavfilter/af_dcshift.c b/libavfilter/af_dcshift.c
index eb981568f1..b37aedbeef 100644
--- a/libavfilter/af_dcshift.c
+++ b/libavfilter/af_dcshift.c
@@ -28,7 +28,7 @@
typedef struct DCShiftContext {
const AVClass *class;
double dcshift;
- double limiterthreshhold;
+ double limiterthreshold;
double limitergain;
} DCShiftContext;
@@ -47,7 +47,7 @@ static av_cold int init(AVFilterContext *ctx)
{
DCShiftContext *s = ctx->priv;
- s->limiterthreshhold = INT32_MAX * (1.0 - (fabs(s->dcshift) - s->limitergain));
+ s->limiterthreshold = INT32_MAX * (1.0 - (fabs(s->dcshift) - s->limitergain));
return 0;
}
@@ -106,14 +106,14 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *in)
d = src[j];
- if (d > s->limiterthreshhold && dcshift > 0) {
- d = (d - s->limiterthreshhold) * s->limitergain /
- (INT32_MAX - s->limiterthreshhold) +
- s->limiterthreshhold + dcshift;
- } else if (d < -s->limiterthreshhold && dcshift < 0) {
- d = (d + s->limiterthreshhold) * s->limitergain /
- (INT32_MAX - s->limiterthreshhold) -
- s->limiterthreshhold + dcshift;
+ if (d > s->limiterthreshold && dcshift > 0) {
+ d = (d - s->limiterthreshold) * s->limitergain /
+ (INT32_MAX - s->limiterthreshold) +
+ s->limiterthreshold + dcshift;
+ } else if (d < -s->limiterthreshold && dcshift < 0) {
+ d = (d + s->limiterthreshold) * s->limitergain /
+ (INT32_MAX - s->limiterthreshold) -
+ s->limiterthreshold + dcshift;
} else {
d = dcshift * INT32_MAX + d;
}