Commit 49d677b7 authored by Jean-Marc Valin's avatar Jean-Marc Valin
Browse files

Fix redundancy mismatch

parent a93f501c
...@@ -184,7 +184,7 @@ int opus_encode(OpusEncoder *st, const short *pcm, int frame_size, ...@@ -184,7 +184,7 @@ int opus_encode(OpusEncoder *st, const short *pcm, int frame_size,
/* CELT processing */ /* CELT processing */
if (st->mode != MODE_SILK_ONLY) if (st->mode != MODE_SILK_ONLY)
{ {
int endband; int endband;
short pcm_buf[960*2]; short pcm_buf[960*2];
int nb_compr_bytes; int nb_compr_bytes;
...@@ -232,7 +232,6 @@ int opus_encode(OpusEncoder *st, const short *pcm, int frame_size, ...@@ -232,7 +232,6 @@ int opus_encode(OpusEncoder *st, const short *pcm, int frame_size,
if (st->mode == MODE_HYBRID) if (st->mode == MODE_HYBRID)
{ {
int len; int len;
celt_encoder_ctl(st->celt_enc, CELT_SET_START_BAND(17));
len = (ec_tell(&enc)+7)>>3; len = (ec_tell(&enc)+7)>>3;
if( st->use_vbr ) { if( st->use_vbr ) {
...@@ -242,7 +241,6 @@ int opus_encode(OpusEncoder *st, const short *pcm, int frame_size, ...@@ -242,7 +241,6 @@ int opus_encode(OpusEncoder *st, const short *pcm, int frame_size,
nb_compr_bytes = len > bytes_target ? len : bytes_target; nb_compr_bytes = len > bytes_target ? len : bytes_target;
} }
} else { } else {
celt_encoder_ctl(st->celt_enc, CELT_SET_START_BAND(0));
if (st->use_vbr) if (st->use_vbr)
{ {
celt_encoder_ctl(st->celt_enc, CELT_SET_VBR(1)); celt_encoder_ctl(st->celt_enc, CELT_SET_VBR(1));
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment