Skip to content
Snippets Groups Projects
Commit 7d1df73f authored by Gregory Maxwell's avatar Gregory Maxwell
Browse files

Fix corner-case hybrid encoding desync introduced by e5736ae2

parent e5736ae2
No related branches found
No related tags found
No related merge requests found
......@@ -804,11 +804,12 @@ int opus_encode_float(OpusEncoder *st, const opus_val16 *pcm, int frame_size,
if (st->mode == MODE_HYBRID)
ec_enc_uint(&enc, redundancy_bytes-2, 256);
}
start_band = 17;
} else {
redundancy = 0;
}
if (st->mode != MODE_CELT_ONLY)start_band=17;
if (st->mode == MODE_SILK_ONLY)
{
ret = (ec_tell(&enc)+7)>>3;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment