[gegl] operations: Fix compile warning in jpg-load



commit 7dfe84a6a52b565e9c3a08066a0bd3e565af9ddb
Author: Jon Nordby <jononor gmail com>
Date:   Tue Aug 12 01:56:24 2014 +0200

    operations: Fix compile warning in jpg-load
    
    C90 >-<

 operations/external/jpg-load.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/operations/external/jpg-load.c b/operations/external/jpg-load.c
index d7960e8..3504d32 100644
--- a/operations/external/jpg-load.c
+++ b/operations/external/jpg-load.c
@@ -124,6 +124,7 @@ gegl_jpg_load_buffer_import_jpg (GeglBuffer  *gegl_buffer,
   JSAMPARRAY                     buffer;
   const Babl                    *format;
   GeglRectangle                  write_rect;
+  gboolean                       is_inverted_cmyk = FALSE;
 
   if ((infile = fopen (path, "rb")) == NULL)
     {
@@ -163,7 +164,7 @@ gegl_jpg_load_buffer_import_jpg (GeglBuffer  *gegl_buffer,
 
   // Most CMYK JPEG files are produced by Adobe Photoshop. Each component is stored where 0 means 100% ink
   // However this might not be case for all. Gory details: 
https://bugzilla.mozilla.org/show_bug.cgi?id=674619
-  const gboolean is_inverted_cmyk = (format == babl_format("CMYK u8"));
+  is_inverted_cmyk = (format == babl_format("CMYK u8"));
 
   while (cinfo.output_scanline < cinfo.output_height)
     {


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