xiph
/
opus.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b30dd9e
)
Another 16-bit fix.
author
Jean-Marc Valin
<jean-marc.valin@usherbrooke.ca>
Tue, 26 Feb 2008 12:59:54 +0000
(23:59 +1100)
committer
Jean-Marc Valin
<jean-marc.valin@usherbrooke.ca>
Tue, 26 Feb 2008 12:59:54 +0000
(23:59 +1100)
libcelt/rangeenc.c
patch
|
blob
|
history
diff --git
a/libcelt/rangeenc.c
b/libcelt/rangeenc.c
index
885854f
..
a1164b5
100644
(file)
--- a/
libcelt/rangeenc.c
+++ b/
libcelt/rangeenc.c
@@
-123,11
+123,11
@@
void ec_enc_done(ec_enc *_this){
of trailing zeros, and write that to the stream.
This is guaranteed to yield the smallest possible encoding.*/
if(_this->low){
-
unsigned
end;
+
ec_uint32
end;
end=EC_CODE_TOP;
/*Ensure that the end value is in the range.*/
if(end-_this->low>=_this->rng){
-
unsigned
msk;
+
ec_uint32
msk;
msk=EC_CODE_TOP-1;
do{
msk>>=1;