ref: ccb4bbffa33b6c0e33b9bc6844ddf69d155c9eb3
parent: f2bc04b3071d5617851f2255e73d3444ac179dfb
author: giles <giles@ded80894-8fb9-0310-811b-c03f3676ab4d>
date: Wed Dec 1 13:51:14 EST 2004
Fix an error in REFAGG decoding, and properly warn that REFAGGNINST > 1 isn't yes implemented. git-svn-id: http://svn.ghostscript.com/jbig2dec/trunk@341 ded80894-8fb9-0310-811b-c03f3676ab4d
--- a/jbig2_symbol_dict.c
+++ b/jbig2_symbol_dict.c
@@ -360,7 +360,9 @@
"aggregate symbol coding (%d instances)", REFAGGNINST);
if (REFAGGNINST > 1) {
- /* multiple symbols are like a text region */
+ jbig2_error(ctx, JBIG2_SEVERITY_FATAL, segment->number,
+ "aggregate coding with REFAGGNINST=%d", REFAGGNINST);
+ /* todo: multiple symbols are like a text region */
} else {
/* 6.5.8.2.2 */
bool SBHUFF = params->SDHUFF;
@@ -374,7 +376,7 @@
/* todo */
} else {
code = jbig2_arith_int_decode(IAID, as, &ID);
- code = jbig2_arith_int_decode(IARDY, as, &RDX);
+ code = jbig2_arith_int_decode(IARDX, as, &RDX);
code = jbig2_arith_int_decode(IARDY, as, &RDY);
}