shithub: opus

Download patch

ref: 7d1df73ff296caf762660952a3950091bef90d25
parent: e5736ae26a7b40b1cf1193761a2ac24d14223cdf
author: Gregory Maxwell <[email protected]>
date: Mon Sep 5 07:28:28 EDT 2011

Fix corner-case hybrid encoding desync introduced by e5736ae2

--- a/src/opus_encoder.c
+++ b/src/opus_encoder.c
@@ -804,10 +804,11 @@
             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)
     {