Quality: Removes high-band attenuation in hybrid mode -- at least for now
authorJean-Marc Valin <jmvalin@jmvalin.ca>
Fri, 25 Dec 2015 18:40:54 +0000 (13:40 -0500)
committerJean-Marc Valin <jmvalin@jmvalin.ca>
Fri, 15 Jul 2016 21:51:45 +0000 (17:51 -0400)
src/opus_encoder.c

index bc4359f..afbfaa9 100644 (file)
@@ -1556,6 +1556,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 */