shithub: jbig2

Download patch

ref: 65b4b234ef4c5d12d8d5f9d624d51595f9e8f14f
parent: f93bc27cbd73b33ac30122d2ca64aab63ce0e327
author: giles <giles@ded80894-8fb9-0310-811b-c03f3676ab4d>
date: Mon Mar 10 09:44:01 EST 2003

add a debug message about segment page association


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

--- a/jbig2_segment.c
+++ b/jbig2_segment.c
@@ -1,7 +1,7 @@
 /*
     jbig2dec
     
-    Copyright (c) 2002 artofcode LLC.
+    Copyright (c) 2002-2003 artofcode LLC.
     
     This program is free software; you can redistribute it and/or modify
     it under the terms of the GNU General Public License as published by
@@ -8,7 +8,7 @@
     the Free Software Foundation; either version 2 of the License, or
     (at your option) any later version.
 
-    $Id: jbig2_segment.c,v 1.22 2003/03/05 14:29:35 giles Exp $
+    $Id: jbig2_segment.c,v 1.23 2003/03/10 14:44:01 giles Exp $
 */
 
 #ifdef HAVE_CONFIG_H
@@ -106,9 +106,12 @@
   } else {
 	result->page_association = buf[offset++];
   }
-  
+  jbig2_error(ctx, JBIG2_SEVERITY_DEBUG, result->number,
+  	"segment %d is associated with page %d",
+  	result->number, result->page_association);
+  	
   /* 7.2.7 */
-  result->data_length = jbig2_get_int32 (buf + offset);
+  result->data_length = jbig2_get_int32(buf + offset);
   *p_header_size = offset + 4;
 
   return result;