Raw bit init for for architectures with chars larger than 8 bits
authorJean-Marc Valin <jean-marc.valin@octasic.com>
Thu, 2 Sep 2010 14:16:56 +0000 (10:16 -0400)
committerJean-Marc Valin <jean-marc.valin@octasic.com>
Thu, 2 Sep 2010 14:16:56 +0000 (10:16 -0400)
libcelt/rangedec.c

index 0d70f56..94f8750 100644 (file)
@@ -141,7 +141,7 @@ void ec_dec_init(ec_dec *_this,ec_byte_buffer *_buf){
   _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;