summaryrefslogtreecommitdiff
path: root/libopenjpeg/t2.c
diff options
context:
space:
mode:
authorParvatha Elangovan <p.elangovan@intopix.com>2007-04-10 16:23:48 +0000
committerParvatha Elangovan <p.elangovan@intopix.com>2007-04-10 16:23:48 +0000
commitdbd132dca8f87a75c5d5addb1e6324da7c089c09 (patch)
treecae685a5ba2f7ac9fc6273543e7a3ca4f3bbd614 /libopenjpeg/t2.c
parent0930d9886b52a4d4f46162cc0c7c292cfd393ebd (diff)
Accepting "j2c" as format for Encoding and Decoding. Modification in image_to_j2k.c.
Modified imagetotif() to read images with signed data. Modification in convert.c.
Diffstat (limited to 'libopenjpeg/t2.c')
-rw-r--r--libopenjpeg/t2.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/libopenjpeg/t2.c b/libopenjpeg/t2.c
index 995b85ce..dc8e24ed 100644
--- a/libopenjpeg/t2.c
+++ b/libopenjpeg/t2.c
@@ -603,9 +603,11 @@ int t2_encode_packets(opj_t2_t* t2,int tileno, opj_tcd_tile_t *tile, int maxlaye
}
}
if (e == -999) break;
- if (comp_len > cp->max_comp_size){
- e = -999;
- break;
+ if (cp->max_comp_size){
+ if (comp_len > cp->max_comp_size){
+ e = -999;
+ break;
+ }
}
}
if (e == -999) break;