From 72de930d08c8a08d082bf14805767e251d6f048d Mon Sep 17 00:00:00 2001 From: Antonin Descampe Date: Fri, 27 Jan 2006 16:29:41 +0000 Subject: fixed two initialization problems in t1.c and tcd.c --- libopenjpeg/t1.c | 2 +- libopenjpeg/tcd.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'libopenjpeg') diff --git a/libopenjpeg/t1.c b/libopenjpeg/t1.c index feb1f734..6b153502 100644 --- a/libopenjpeg/t1.c +++ b/libopenjpeg/t1.c @@ -524,7 +524,7 @@ static void t1_encode_cblk(opj_t1_t *t1, opj_tcd_cblk_t * cblk, int orient, int int passno; int bpno, passtype; int max; - int nmsedec; + int nmsedec = 0; double cumwmsedec = 0; char type = T1_TYPE_MQ; diff --git a/libopenjpeg/tcd.c b/libopenjpeg/tcd.c index 8454d576..77fca831 100644 --- a/libopenjpeg/tcd.c +++ b/libopenjpeg/tcd.c @@ -1056,7 +1056,7 @@ bool tcd_rateallocate(opj_tcd_t *tcd, unsigned char *dest, int len, opj_image_in double hi = max; int success = 0; int maxlen = tcd_tcp->rates[layno] ? int_min(tcd_tcp->rates[layno], len) : len; - double goodthresh; + double goodthresh = 0; int i; double distotarget; /* fixed_quality */ -- cgit v1.2.3