shithub: opus

Download patch

ref: cef1d6ac0f4661731280d75757b48eb1f97fb03e
parent: 7fde0588796ae90b3be3981403238575d3b9282e
author: Jean-Marc Valin <[email protected]>
date: Thu Sep 2 06:16:56 EDT 2010

Raw bit init for for architectures with chars larger than 8 bits

--- a/libcelt/rangedec.c
+++ b/libcelt/rangedec.c
@@ -141,7 +141,7 @@
   _this->dif=_this->rng-(_this->rem>>EC_SYM_BITS-EC_CODE_EXTRA);
   /*Normalize the interval.*/
   ec_dec_normalize(_this);
-  /*_this->end_byte=ec_byte_look_at_end(_this->buf);*/
+  _this->end_byte=0; /* Required for platforms that have chars > 8 bits */
   _this->end_bits_left=0;
   _this->nb_end_bits=0;
   _this->error=0;