shithub: jbig2

Download patch

ref: 391a059aad7b801f004b01e17663a4024294d6ef
parent: b78900486172244c39187e89a085b12f2b6abdb1
author: giles <giles@ded80894-8fb9-0310-811b-c03f3676ab4d>
date: Thu Dec 1 16:52:38 EST 2005

Handle immediate lossless generic regions the same as immediate generic 
regions. Fixes bug 688397.


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

--- a/jbig2_segment.c
+++ b/jbig2_segment.c
@@ -263,11 +263,9 @@
     case 36:
       return jbig2_error(ctx, JBIG2_SEVERITY_WARNING, segment->number,
         "unhandled segment type 'intermediate generic region'");
-    case 38:
+    case 38: /* immediate generic region */
+    case 39: /* immediate lossless generic region */
       return jbig2_immediate_generic_region(ctx, segment, segment_data);
-    case 39:
-      return jbig2_error(ctx, JBIG2_SEVERITY_WARNING, segment->number,
-        "unhandled segment type 'immediate lossless generic region'");
     case 40: /* intermediate generic refinement region */
     case 42: /* immediate generic refinement region */
     case 43: /* immediate lossless generic refinement region */