shithub: jbig2

Download patch

ref: 804b91c488cbb7ea22bad56edd0b39384066c908
parent: d89f78a5cb864865e102192f5a44d6b149f0bf71
author: giles <giles@ded80894-8fb9-0310-811b-c03f3676ab4d>
date: Wed Dec 1 14:45:29 EST 2004

Correct a typo, and switch allocation of GR_stats on SDREFAGG instead of SDRTEMPLATE.


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

--- a/jbig2_symbol_dict.c
+++ b/jbig2_symbol_dict.c
@@ -572,8 +572,8 @@
 	params.SDTEMPLATE == 1 ? 8192 : 1024;
       GB_stats = jbig2_alloc(ctx->allocator, stats_size);
       memset(GB_stats, 0, stats_size);
-      if (!params.SDRTEMPLATE) {
-	stats_size = params.SDRTEMPLATE ? 1 << 1 : 1 << 13;
+      if (!params.SDREFAGG) {
+	stats_size = params.SDRTEMPLATE ? 1 << 10 : 1 << 13;
 	GR_stats = jbig2_alloc(ctx->allocator, stats_size);
 	memset(GR_stats, 0, stats_size);
       }