summaryrefslogtreecommitdiff
path: root/libopenjpeg
diff options
context:
space:
mode:
authorFrancois-Olivier Devaux <fodevaux@users.noreply.github.com>2007-12-10 13:16:01 +0000
committerFrancois-Olivier Devaux <fodevaux@users.noreply.github.com>2007-12-10 13:16:01 +0000
commit26606c71c8a5c3a79f9e371e1c0ddfcb800b77df (patch)
treea44d6c989e1e143b8420b737b0aa46745bcdca34 /libopenjpeg
parente06bcd027f860f2d62c5419dab14a975eecae7c9 (diff)
First import of JAVAOpenJPEG, a Java wrapper of OpenJPEG, developed by Patrick Piscaglia of Telemis (www.telemis.com). Thank you Patrick for this new module !
Diffstat (limited to 'libopenjpeg')
-rw-r--r--libopenjpeg/tcd.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libopenjpeg/tcd.c b/libopenjpeg/tcd.c
index 95cfd93e..4a58ebeb 100644
--- a/libopenjpeg/tcd.c
+++ b/libopenjpeg/tcd.c
@@ -1384,9 +1384,9 @@ bool tcd_decode_tile(opj_tcd_t *tcd, unsigned char *src, int len, int tileno, op
if (tcd->cp->reduce != 0) {
tcd->image->comps[compno].resno_decoded =
tile->comps[compno].numresolutions - tcd->cp->reduce - 1;
- if (tcd->image->comps[compno].resno_decoded < 0) {
- opj_event_msg(tcd->cinfo, EVT_ERROR, "Error decoding tile. The number of resolutions to remove is higher than the number "
- "of resolutions in the original codestream\nModify the cp_reduce parameter.\n");
+ if (tcd->image->comps[compno].resno_decoded < 0) {
+ opj_event_msg(tcd->cinfo, EVT_ERROR, "Error decoding tile. The number of resolutions to remove [%d+1] is higher than the number "
+ " of resolutions in the original codestream [%d]\nModify the cp_reduce parameter.\n", tcd->cp->reduce, tile->comps[compno].numresolutions);
return false;
}
}