Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Mark Harris
Opus
Commits
7a455d4e
Commit
7a455d4e
authored
Feb 26, 2008
by
Jean-Marc Valin
Browse files
Another 16-bit fix.
parent
b30dd9e1
Changes
1
Hide whitespace changes
Inline
Side-by-side
libcelt/rangeenc.c
View file @
7a455d4e
...
...
@@ -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
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment