Files
pkgsrc-ng/graphics/jasper/patches/patch-ag
2013-09-26 17:14:40 +02:00

24 lines
729 B
Plaintext

$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;
}