[gs-commits] rev 11818 - branches/luratech_work/base

larsu at ghostscript.com larsu at ghostscript.com
Fri Oct 15 15:24:16 UTC 2010


Author: larsu
Date: 2010-10-15 15:24:16 +0000 (Fri, 15 Oct 2010)
New Revision: 11818

Modified:
   branches/luratech_work/base/sjpx_luratech.c
Log:
sjpx_luratech: Fix calculating channel indices.



Modified: branches/luratech_work/base/sjpx_luratech.c
===================================================================
--- branches/luratech_work/base/sjpx_luratech.c	2010-10-15 15:12:36 UTC (rev 11817)
+++ branches/luratech_work/base/sjpx_luratech.c	2010-10-15 15:24:16 UTC (rev 11818)
@@ -340,7 +340,7 @@
     if (alpha) {
         for (i = 0; i < nchans; i++) {
             if (chans[i].ulType == cJP2_Channel_Type_Opacity) {
-                clut[0] = i;
+                clut[i] = 0;
                 break;
             }
         }
@@ -351,7 +351,7 @@
             int assoc = chans[i].ulAssociated -1;
             if (assoc >= nchans)
                 return -1;
-            clut[assoc + alpha] = i;
+            clut[i] = assoc + alpha;
             cnt++;
         }
     }



More information about the gs-commits mailing list