ref: 6d5af483beb9f780524045cbca4d19b79bfe4361
parent: 78291b270ab9d253049018c6e280b68ab6f50b85
author: Jean-Marc Valin <[email protected]>
date: Sat Oct 8 18:45:19 EDT 2011
Increase the floor on nb_compr_bytes when we enable redundancy.
--- a/src/opus_encoder.c
+++ b/src/opus_encoder.c
@@ -864,6 +864,8 @@
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 {