Commit 6d5af483 authored by Jean-Marc Valin's avatar Jean-Marc Valin
Browse files

Increase the floor on nb_compr_bytes when we enable redundancy.

parent 78291b27
......@@ -864,6 +864,8 @@ int opus_encode_float(OpusEncoder *st, const opus_val16 *pcm, int frame_size,
int len;
len = (ec_tell(&enc)+7)>>3;
if (redundancy)
len += st->mode == MODE_HYBRID ? 3 : 1;
if( st->use_vbr ) {
nb_compr_bytes = len + bytes_target - (st->silk_mode.bitRate * frame_size) / (8 * st->Fs);
} else {
......
Markdown is supported
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