CIE: fix some wrong src/dst increments, issue #22
authorMassimo Valentini <mvalentini@src.gnome.org>
Wed, 3 Oct 2018 10:38:28 +0000 (12:38 +0200)
committerØyvind Kolås <pippin@gimp.org>
Wed, 3 Oct 2018 11:22:23 +0000 (13:22 +0200)
extensions/CIE.c

index 1c8b70c9fee42058c2a0991e40c6ccc4a55146ed..2f8c868ddc40092e4c351f2adcf52e8377fe61a3 100644 (file)
@@ -567,7 +567,7 @@ rgbaf_to_xyYf (const Babl *conversion,
       dst[2] = Y;
 
       src += 4;
-      dst += 4;
+      dst += 3;
     }
 }
 
@@ -744,7 +744,7 @@ xyYf_to_rgbaf (const Babl *conversion,
       dst[2] =    b;
       dst[3] = 1.0f;
 
-      src += 4;
+      src += 3;
       dst += 4;
     }
 }