diff options
author | Jean-Marc Valin <jmvalin@jmvalin.ca> | 2015-12-25 21:40:54 +0300 |
---|---|---|
committer | Jean-Marc Valin <jmvalin@jmvalin.ca> | 2016-06-02 22:13:35 +0300 |
commit | b893b161593c3836afad766e2714230185817f42 (patch) | |
tree | c05e30a3aed3d475e0fba8ad91e6c41115035014 /src | |
parent | a7fd4b533978b68e42ac78c987e6f0f895c77508 (diff) |
Quality: Removes high-band attenuation in hybrid mode -- at least for now
Diffstat (limited to 'src')
-rw-r--r-- | src/opus_encoder.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/opus_encoder.c b/src/opus_encoder.c index 8a97ef75..1e717a22 100644 --- a/src/opus_encoder.c +++ b/src/opus_encoder.c @@ -1547,6 +1547,7 @@ opus_int32 opus_encode_native(OpusEncoder *st, const opus_val16 *pcm, int frame_ HB_gain_ref = (curr_bandwidth == OPUS_BANDWIDTH_SUPERWIDEBAND) ? 3000 : 3600; HB_gain = SHL32((opus_val32)celt_rate, 9) / SHR32((opus_val32)celt_rate + st->stream_channels * HB_gain_ref, 6); HB_gain = HB_gain < (opus_val32)Q15ONE*6/7 ? HB_gain + Q15ONE/7 : Q15ONE; + HB_gain = Q15ONE; } } else { /* SILK gets all bits */ |