babl-fish-reference: disable a fast-code path that sometimes is invalid
authorØyvind Kolås <pippin@gimp.org>
Wed, 29 Aug 2018 21:51:50 +0000 (23:51 +0200)
committerØyvind Kolås <pippin@gimp.org>
Wed, 29 Aug 2018 21:51:50 +0000 (23:51 +0200)
babl/babl-fish-reference.c
babl/babl-fish.c

index 7ae5455d5bb9449a49f2320711bf323bcc4fad15..c813225f9fdfbccce31868f087689c2243f02c96 100644 (file)
@@ -758,7 +758,7 @@ babl_fish_reference_process (const Babl *babl,
     else
     {
       source_float_buf_alloc = babl_malloc (sizeof (float) * n *
-                                  BABL (babl->fish.source)->format.model->components);
+                                  (BABL (babl->fish.source)->format.model->components));
 
       source_float_buf = source_float_buf_alloc;
       source_image = babl_image_from_linear (
@@ -773,7 +773,7 @@ babl_fish_reference_process (const Babl *babl,
       );
     }
 
-    if (babl_model_is ((void*)babl->fish.source->format.model, "RGBA"))
+    if (babl_model_is ((void*)babl->fish.source->format.model, "RGBA") && 0)
     {
       rgba_float_buf = source_float_buf;
       rgba_image = babl_image_from_linear (
index a1baa5061778952eebf494b042de8f4378970ddc..0976de6160d918a48029b863670f4bee0d32180f 100644 (file)
@@ -119,6 +119,7 @@ babl_conversion_find (const void *source,
                       const void *destination)
 {
   void *data = (void*)destination;
+
   babl_list_each (BABL (source)->type.from_list, match_conversion, &data);
   if (data != (void*)destination) /* didn't change */
     return data;