[gs-cvs] rev 7848 - trunk/gs/jbig2dec
henrys at ghostscript.com
henrys at ghostscript.com
Sat Apr 14 22:42:43 PDT 2007
Author: henrys
Date: 2007-04-14 22:42:43 -0700 (Sat, 14 Apr 2007)
New Revision: 7848
Modified:
trunk/gs/jbig2dec/jbig2_text.c
Log:
The range of runcode33 was not correct. The specification says 3
(not 2) should be added to the run length. See the JBIG2 spec, Table
29 in section 7.4.3.1.7 (Symbol ID Huffman table decoding). Fixes
688009.
Modified: trunk/gs/jbig2dec/jbig2_text.c
===================================================================
--- trunk/gs/jbig2dec/jbig2_text.c 2007-04-14 14:08:04 UTC (rev 7847)
+++ trunk/gs/jbig2dec/jbig2_text.c 2007-04-15 05:42:43 UTC (rev 7848)
@@ -212,7 +212,7 @@
return -1;
}
len = symcodelengths[index-1].PREFLEN;
- if (code == 32) range = jbig2_huffman_get_bits(hs, 2) + 2;
+ if (code == 32) range = jbig2_huffman_get_bits(hs, 2) + 3;
else if (code == 33) range = jbig2_huffman_get_bits(hs, 3) + 3;
else if (code == 34) range = jbig2_huffman_get_bits(hs, 7) + 11;
}
More information about the gs-cvs
mailing list