Fix redundancy mismatch
This commit is contained in:
parent
a93f501cfa
commit
49d677b74b
1 changed files with 1 additions and 3 deletions
|
@ -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,
|
||||||
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,
|
||||||
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));
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue