diff options
Diffstat (limited to 'graphics')
-rw-r--r-- | graphics/jasper/Makefile | 2 | ||||
-rw-r--r-- | graphics/jasper/files/patch-jpc_dec.c | 17 |
2 files changed, 18 insertions, 1 deletions
diff --git a/graphics/jasper/Makefile b/graphics/jasper/Makefile index b5d6c6eb0939..5b08fa263935 100644 --- a/graphics/jasper/Makefile +++ b/graphics/jasper/Makefile @@ -7,7 +7,7 @@ PORTNAME= jasper PORTVERSION= 1.900.1 -PORTREVISION= 9 +PORTREVISION= 10 CATEGORIES= graphics MASTER_SITES= http://www.ece.uvic.ca/~mdadams/jasper/software/ \ ${MASTER_SITE_IMAGEMAGICK} diff --git a/graphics/jasper/files/patch-jpc_dec.c b/graphics/jasper/files/patch-jpc_dec.c new file mode 100644 index 000000000000..957e14cb134d --- /dev/null +++ b/graphics/jasper/files/patch-jpc_dec.c @@ -0,0 +1,17 @@ +--- src/libjasper/jpc/jpc_dec.c 2007-01-19 22:43:07.000000000 +0100 ++++ src/libjasper/jpc/jpc_dec.c 2011-11-09 15:04:49.000000000 +0100 +@@ -1069,12 +1069,12 @@ + /* Apply an inverse intercomponent transform if necessary. */ + switch (tile->cp->mctid) { + case JPC_MCT_RCT: +- assert(dec->numcomps == 3); ++ assert(dec->numcomps == 3 || dec->numcomps == 4); + jpc_irct(tile->tcomps[0].data, tile->tcomps[1].data, + tile->tcomps[2].data); + break; + case JPC_MCT_ICT: +- assert(dec->numcomps == 3); ++ assert(dec->numcomps == 3 || dec->numcomps == 4); + jpc_iict(tile->tcomps[0].data, tile->tcomps[1].data, + tile->tcomps[2].data); + break;
\ No newline at end of file |