diff --git a/src/opus_encoder.c b/src/opus_encoder.c index bb846793eacadb3ed1df1e0577289a035c53ec3b..ab607e7da024afff3f8afad152b2ec91ad3859b5 100644 --- a/src/opus_encoder.c +++ b/src/opus_encoder.c @@ -930,7 +930,7 @@ int opus_encode_float(OpusEncoder *st, const opus_val16 *pcm, int frame_size, if ( st->mode != MODE_CELT_ONLY && ec_tell(&enc)+17+20*(st->mode == MODE_HYBRID) <= 8*(max_data_bytes-1)) { /* For SILK mode, the redundancy is inferred from the length */ - if (st->mode == MODE_HYBRID && (redundancy || ec_tell(&enc)+37 < 8*nb_compr_bytes)) + if (st->mode == MODE_HYBRID && (redundancy || ec_tell(&enc)+37 <= 8*nb_compr_bytes)) ec_enc_bit_logp(&enc, redundancy, 12); if (redundancy) {