blob: 140c335c55e4686a051b8543eccf921ff7707675 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
$NetBSD: patch-ag,v 1.4 2008/03/20 19:58:16 drochner Exp $
--- ./src/libjasper/jpc/jpc_dec.c.orig 2007-01-19 22:43:07.000000000 +0100
+++ ./src/libjasper/jpc/jpc_dec.c
@@ -1234,6 +1234,7 @@ static int jpc_dec_process_siz(jpc_dec_t
}
for (compno = 0, cmpt = dec->cmpts, tcomp = tile->tcomps;
compno < dec->numcomps; ++compno, ++cmpt, ++tcomp) {
+ tcomp->numrlvls = 0;
tcomp->rlvls = 0;
tcomp->data = 0;
tcomp->xstart = JPC_CEILDIV(tile->xstart, cmpt->hstep);
@@ -1466,7 +1467,9 @@ static int jpc_dec_process_unk(jpc_dec_t
dec = 0;
jas_eprintf("warning: ignoring unknown marker segment\n");
- jpc_ms_dump(ms, stderr);
+ if (jas_getdbglevel() >= 1) {
+ jpc_ms_dump(ms, stderr);
+ }
return 0;
}
|