shithub: opus

Download patch

ref: 49d677b74b5a2cdc9393ec217201edcfd0e06548
parent: a93f501cfa9848ac37dcbf9618c5e6ee039d1059
author: Jean-Marc Valin <[email protected]>
date: Thu Mar 3 11:53:32 EST 2011

Fix redundancy mismatch

--- a/src/opus_encoder.c
+++ b/src/opus_encoder.c
@@ -184,7 +184,7 @@
     /* CELT processing */
 	if (st->mode != MODE_SILK_ONLY)
 	{
-		int endband;
+	    int endband;
 	    short pcm_buf[960*2];
 	    int nb_compr_bytes;
 
@@ -232,7 +232,6 @@
         if (st->mode == MODE_HYBRID)
         {
             int len;
-            celt_encoder_ctl(st->celt_enc, CELT_SET_START_BAND(17));
 
             len = (ec_tell(&enc)+7)>>3;
             if( st->use_vbr ) {
@@ -242,7 +241,6 @@
                 nb_compr_bytes = len > bytes_target ? len : bytes_target;
             }
         } else {
-            celt_encoder_ctl(st->celt_enc, CELT_SET_START_BAND(0));
             if (st->use_vbr)
             {
                 celt_encoder_ctl(st->celt_enc, CELT_SET_VBR(1));