[babl] CIE: fix some wrong src/dst increments, issue #22



commit 3120030ff5f6076d90956c8e152416281f77317a
Author: Massimo Valentini <mvalentini src gnome org>
Date:   Wed Oct 3 12:38:28 2018 +0200

    CIE: fix some wrong src/dst increments, issue #22

 extensions/CIE.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/extensions/CIE.c b/extensions/CIE.c
index 1c8b70c..2f8c868 100644
--- a/extensions/CIE.c
+++ b/extensions/CIE.c
@@ -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;
     }
 }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]