projects
/
openjpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
696cd71
)
fixed a cast problem in the maxlen variable
author
Antonin Descampe
<antonin@gmail.com>
Tue, 31 Oct 2006 18:10:03 +0000
(18:10 +0000)
committer
Antonin Descampe
<antonin@gmail.com>
Tue, 31 Oct 2006 18:10:03 +0000
(18:10 +0000)
libopenjpeg/tcd.c
patch
|
blob
|
history
diff --git
a/libopenjpeg/tcd.c
b/libopenjpeg/tcd.c
index c0c4c52f9288b829433a031ecbdf2aeefb7314aa..fa7154ae66faa88bcfea4c5ff5b34d06598dad7e 100644
(file)
--- a/
libopenjpeg/tcd.c
+++ b/
libopenjpeg/tcd.c
@@
-1020,7
+1020,7
@@
bool tcd_rateallocate(opj_tcd_t *tcd, unsigned char *dest, int len, opj_image_in
double hi = max;
int success = 0;
/* TODO: remove maxlen */
- int maxlen = tcd_tcp->rates[layno] ?
(tcd_tcp->rates[layno] < len ? tcd_tcp->rates[layno] :
len) : len;
+ int maxlen = tcd_tcp->rates[layno] ?
int_min(((int) ceil(tcd_tcp->rates[layno])),
len) : len;
double goodthresh = 0;
int i;
double distotarget; /* fixed_quality */