shithub: jbig2

Download patch

ref: a01d4e48567de8c803e993a76b5d7749f597875d
parent: e7c951253f1d39e3a6451cc476f89fd1a5827d97
author: giles <giles@ded80894-8fb9-0310-811b-c03f3676ab4d>
date: Wed Nov 24 12:52:32 EST 2004

Correct the size of the GB_stats allocation for the refinement
templates; the sizes were reversed.


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

--- a/jbig2_refinement.c
+++ b/jbig2_refinement.c
@@ -406,7 +406,7 @@
       "allocated %d x %d image buffer for region decode results",
           rsi.width, rsi.height);
 
-    stats_size = params.GRTEMPLATE ? 1 << 13 : 1 << 10;
+    stats_size = params.GRTEMPLATE ? 1 << 10 : 1 << 13;
     GB_stats = jbig2_alloc(ctx->allocator, stats_size);
     memset(GB_stats, 0, stats_size);