diff options
author | Jean-Marc Valin <jmvalin@jmvalin.ca> | 2016-06-20 12:11:05 -0400 |
---|---|---|
committer | Jean-Marc Valin <jmvalin@jmvalin.ca> | 2016-06-20 12:11:05 -0400 |
commit | b66080a8794f7e49d519a8e3e063ae5c645f465e (patch) | |
tree | e26c3ac1ae12577385ccae82cd567457d73dca04 /celt/pitch.c | |
parent | b1034eb1f06250f6524e14b9c9e1f388a45eb158 (diff) | |
download | opus-b66080a8794f7e49d519a8e3e063ae5c645f465e.tar.gz |
Fixes minor code quality issues in CELT
Reported by Durandal.
Diffstat (limited to 'celt/pitch.c')
-rw-r--r-- | celt/pitch.c | 2 |
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); |