diff src/format_fuji.c @ 108:9c355d5c8619

Fri Nov 10 16:11:28 2006 John Ellis <johne@verizon.net> * format_fuji.c (format_fuji_raw): Use exif_byte_get_int32() to get the value, as when that is eventually fixed to be alignment safe, the so shall this.
author gqview
date Fri, 10 Nov 2006 21:15:52 +0000
parents 847e4bc6b54c
children 71e1ebee420e
line wrap: on
line diff
--- a/src/format_fuji.c	Fri Nov 10 03:30:00 2006 +0000
+++ b/src/format_fuji.c	Fri Nov 10 21:15:52 2006 +0000
@@ -49,7 +49,7 @@
 		}
 
 	/* offset to jpeg is embedded at bytes 84-87 */
-	io = GUINT32_FROM_BE(*(guint32*)(data + 84));
+	io = exif_byte_get_int32(data + 84, EXIF_BYTE_ORDER_MOTOROLA);
 	if (io + 4 > len) return FALSE;
 
 	/* verify jpeg marker */