fixed two initialization problems in t1.c and tcd.c

This commit is contained in:
Antonin Descampe 2006-01-27 16:29:41 +00:00
parent 8a662fa4b1
commit 72de930d08
3 changed files with 5 additions and 2 deletions

View File

@ -5,6 +5,9 @@ What's New for OpenJPEG
! : changed ! : changed
+ : added + : added
January 27, 2006
* [Antonin Descampe] fixed a two initialization problems in t1.c and tcd.c
January 26, 2006 January 26, 2006
* [Herve Drolon] fixed various minor warnings occuring under gcc * [Herve Drolon] fixed various minor warnings occuring under gcc
* [__david__] fixed a segfault in codec/image_to_j2k.c & codec/j2k_to_image.c * [__david__] fixed a segfault in codec/image_to_j2k.c & codec/j2k_to_image.c

View File

@ -524,7 +524,7 @@ static void t1_encode_cblk(opj_t1_t *t1, opj_tcd_cblk_t * cblk, int orient, int
int passno; int passno;
int bpno, passtype; int bpno, passtype;
int max; int max;
int nmsedec; int nmsedec = 0;
double cumwmsedec = 0; double cumwmsedec = 0;
char type = T1_TYPE_MQ; char type = T1_TYPE_MQ;

View File

@ -1056,7 +1056,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;
int maxlen = tcd_tcp->rates[layno] ? int_min(tcd_tcp->rates[layno], len) : len; int maxlen = tcd_tcp->rates[layno] ? int_min(tcd_tcp->rates[layno], len) : len;
double goodthresh; double goodthresh = 0;
int i; int i;
double distotarget; /* fixed_quality */ double distotarget; /* fixed_quality */