shithub: jbig2

Download patch

ref: 581b2c04128ae030deba492ea9a4dfc64a033eae
parent: b4c9f4c43bb969875ad842658e269646abaeb96e
author: giles <giles@ded80894-8fb9-0310-811b-c03f3676ab4d>
date: Tue Nov 23 22:03:12 EST 2004

Correct a typo in reading the SBRAT offsets in text segments.


git-svn-id: http://svn.ghostscript.com/jbig2dec/trunk@330 ded80894-8fb9-0310-811b-c03f3676ab4d

--- a/jbig2_text.c
+++ b/jbig2_text.c
@@ -332,9 +332,9 @@
         if ((params.SBREFINE) && !(params.SBRTEMPLATE))
           {
             sbrat[0] = segment_data[offset];
-            sbrat[0] = segment_data[offset + 1];
-            sbrat[0] = segment_data[offset + 2];
-            sbrat[0] = segment_data[offset + 3];
+            sbrat[1] = segment_data[offset + 1];
+            sbrat[2] = segment_data[offset + 2];
+            sbrat[3] = segment_data[offset + 3];
             offset += 4;
       }