shithub: opus

Download patch

ref: 76516c834dc1c5f173806139465c0767b73b8f36
parent: e2d1ef1fa0dd5df1da3f7ce477522a3966414a5a
author: Jean-Marc Valin <[email protected]>
date: Tue Jul 6 12:00:44 EDT 2010

Now coding the 4-8 kHz band only once!

--- a/src/hybrid_decoder.c
+++ b/src/hybrid_decoder.c
@@ -101,7 +101,7 @@
     if (st->mode == MODE_HYBRID)
     {
         /* This should be adjusted based on the SILK bandwidth */
-        celt_decoder_ctl(st->celt_dec, CELT_SET_START_BAND(13));
+        celt_decoder_ctl(st->celt_dec, CELT_SET_START_BAND(17));
     } else {
         celt_decoder_ctl(st->celt_dec, CELT_SET_START_BAND(0));
     }
--- a/src/hybrid_encoder.c
+++ b/src/hybrid_encoder.c
@@ -110,7 +110,7 @@
 	if (st->mode == MODE_HYBRID)
 	{
 	    /* This should be adjusted based on the SILK bandwidth */
-	    celt_encoder_ctl(st->celt_enc, CELT_SET_START_BAND(13));
+	    celt_encoder_ctl(st->celt_enc, CELT_SET_START_BAND(17));
 	} else {
         celt_encoder_ctl(st->celt_enc, CELT_SET_START_BAND(0));
 	}