Fix big endian support in tiff loader
authorMichal Čihař <mcihar@suse.cz>
Tue, 21 Aug 2012 12:53:05 +0000 (14:53 +0200)
committerMichal Čihař <mcihar@suse.cz>
Tue, 21 Aug 2012 12:53:05 +0000 (14:53 +0200)
src/image_load_tiff.c

index d32899c..71a33b8 100644 (file)
@@ -326,7 +326,7 @@ static gboolean image_loader_tiff_load (gpointer loader, const guchar *buf, gsiz
                /* Turns out that the packing used by TIFFRGBAImage depends on 
                 * the host byte order... 
                 */ 
-               while (pixels < pixbuf->pixels + bytes) 
+               while (pixels < lt->pixbuf->pixels + bytes) 
                        {
                        uint32 pixel = *(uint32 *)pixels;
                        int r = TIFFGetR(pixel);
@@ -419,4 +419,4 @@ void image_loader_backend_set_tiff(ImageLoaderBackend *funcs)
 
 
 
-#endif
\ No newline at end of file
+#endif