Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.xiph.org/xiph/opus.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJean-Marc Valin <jmvalin@jmvalin.ca>2013-11-14 02:50:39 +0400
committerJean-Marc Valin <jmvalin@jmvalin.ca>2013-11-14 08:18:42 +0400
commit8bbdf5fa0a98d686df6a3bdc5553dbdaa82b1019 (patch)
tree3aa638f7dad024020bb25b6e4ee52d4f77701e84
parent3a4659a622a8353b2e2815c1dc44f32972b45660 (diff)
Fixes max_redundancy so that hybrid CBR can fill all bytes
-rw-r--r--src/opus_encoder.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/opus_encoder.c b/src/opus_encoder.c
index e66974bd..abac1450 100644
--- a/src/opus_encoder.c
+++ b/src/opus_encoder.c
@@ -1797,7 +1797,7 @@ opus_int32 opus_encode_native(OpusEncoder *st, const opus_val16 *pcm, int frame_
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,