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@amazon.com>2023-12-20 10:07:45 +0300
committerJean-Marc Valin <jmvalin@amazon.com>2023-12-20 10:07:45 +0300
commitcc8742995f9b594ebd7baeb20d7a6c4726dec87f (patch)
tree1139b83a65e8cae677b805f7b2f1f75293f45104
parent942505d0ba2bd767d3ec4c0051c65aa7869e2f28 (diff)
5 does not equal 8, even for large values of 5exp_multiframe_cleanup2
-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 5510e8f5..e561e41f 100644
--- a/src/opus_encoder.c
+++ b/src/opus_encoder.c
@@ -2124,7 +2124,7 @@ static opus_int32 opus_encode_native_process(OpusEncoder *st, const opus_val16 *
max_celt_bytes = nb_compr_bytes - dred_bytes*3/4;
/* But try to give CELT at least 5 bytes to prevent a mismatch with
the redundancy signaling. */
- max_celt_bytes = IMAX((ec_tell(&enc)+7)/8 + 8, max_celt_bytes);
+ max_celt_bytes = IMAX((ec_tell(&enc)+7)/8 + 5, max_celt_bytes);
/* Subject to the original max. */
nb_compr_bytes = IMIN(nb_compr_bytes, max_celt_bytes);
}