fixed a cast problem in the maxlen variable
This commit is contained in:
@@ -1020,7 +1020,7 @@ bool tcd_rateallocate(opj_tcd_t *tcd, unsigned char *dest, int len, opj_image_in
|
|||||||
double hi = max;
|
double hi = max;
|
||||||
int success = 0;
|
int success = 0;
|
||||||
/* TODO: remove maxlen */
|
/* 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;
|
double goodthresh = 0;
|
||||||
int i;
|
int i;
|
||||||
double distotarget; /* fixed_quality */
|
double distotarget; /* fixed_quality */
|
||||||
|
Reference in New Issue
Block a user