ref: 65b51e728aed87dfeb43227218be0c5cc4d642af
parent: 5bbe12052a1a34c065451a2c10741021caf6887c
author: giles <giles@ded80894-8fb9-0310-811b-c03f3676ab4d>
date: Mon Dec 6 00:36:28 EST 2004
Correct the test for the nominal generic region template 0 AT pixel positions. The previous change invoked the optimized routine for the wrong template, causing a regression with ubc test stream 042_10. git-svn-id: http://svn.ghostscript.com/jbig2dec/trunk@355 ded80894-8fb9-0310-811b-c03f3676ab4d
--- a/jbig2_generic.c
+++ b/jbig2_generic.c
@@ -488,9 +488,9 @@
if (!params->MMR && params->GBTEMPLATE == 0) {
if (gbat[0] == +3 && gbat[1] == -1 &&
- gbat[2] == -3 && gbat[4] == -1 &&
+ gbat[2] == -3 && gbat[3] == -1 &&
gbat[4] == +2 && gbat[5] == -2 &&
- gbat[6] == +2 && gbat[7] == -2)
+ gbat[6] == -2 && gbat[7] == -2)
return jbig2_decode_generic_template0(ctx, segment, params,
as, image, GB_stats);
else