shithub: opus

Download patch

ref: fb1d3165e0615829440e5ccad58d2d664436c36c
parent: 66f3ef3180d6f40ff922d40aa3c28118fa241c2d
author: Jean-Marc Valin <[email protected]>
date: Fri Dec 25 08:40:54 EST 2015

Quality: Removes high-band attenuation in hybrid mode -- at least for now

--- a/src/opus_encoder.c
+++ b/src/opus_encoder.c
@@ -1556,6 +1556,7 @@
                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 */