ref: 8bbdf5fa0a98d686df6a3bdc5553dbdaa82b1019
parent: 3a4659a622a8353b2e2815c1dc44f32972b45660
author: Jean-Marc Valin <[email protected]>
date: Wed Nov 13 12:50:39 EST 2013
Fixes max_redundancy so that hybrid CBR can fill all bytes
--- a/src/opus_encoder.c
+++ b/src/opus_encoder.c
@@ -1797,7 +1797,7 @@
int max_redundancy;
ec_enc_bit_logp(&enc, celt_to_silk, 1);
if (st->mode == MODE_HYBRID)
- max_redundancy = (max_data_bytes-1)-nb_compr_bytes-1;
+ max_redundancy = (max_data_bytes-1)-nb_compr_bytes;
else
max_redundancy = (max_data_bytes-1)-((ec_tell(&enc)+7)>>3);
/* Target the same bit-rate for redundancy as for the rest,