summaryrefslogtreecommitdiff
path: root/celt/pitch.c
diff options
context:
space:
mode:
authorJean-Marc Valin <jmvalin@jmvalin.ca>2016-06-20 12:11:05 -0400
committerJean-Marc Valin <jmvalin@jmvalin.ca>2016-06-20 12:11:05 -0400
commitb66080a8794f7e49d519a8e3e063ae5c645f465e (patch)
treee26c3ac1ae12577385ccae82cd567457d73dca04 /celt/pitch.c
parentb1034eb1f06250f6524e14b9c9e1f388a45eb158 (diff)
downloadopus-b66080a8794f7e49d519a8e3e063ae5c645f465e.tar.gz
Fixes minor code quality issues in CELT
Reported by Durandal.
Diffstat (limited to 'celt/pitch.c')
-rw-r--r--celt/pitch.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/celt/pitch.c b/celt/pitch.c
index 873a09b8..bf46e7d5 100644
--- a/celt/pitch.c
+++ b/celt/pitch.c
@@ -514,7 +514,7 @@ opus_val16 remove_doubling(opus_val16 *x, int maxperiod, int minperiod,
if (abs(T1-prev_period)<=1)
cont = prev_gain;
else if (abs(T1-prev_period)<=2 && 5*k*k < T0)
- cont = HALF32(prev_gain);
+ cont = HALF16(prev_gain);
else
cont = 0;
thresh = MAX16(QCONST16(.3f,15), MULT16_16_Q15(QCONST16(.7f,15),g0)-cont);