Fri Nov 10 16:11:28 2006 John Ellis <johne@verizon.net>
authorJohn Ellis <johne@verizon.net>
Fri, 10 Nov 2006 21:15:52 +0000 (21:15 +0000)
committerJohn Ellis <johne@verizon.net>
Fri, 10 Nov 2006 21:15:52 +0000 (21:15 +0000)
        * 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.

ChangeLog
src/format_fuji.c

index 8d55cf3..33dc2ee 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+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.
+
 Thu Nov  9 20:27:47 2006  John Ellis  <johne@verizon.net>
 
        * exif.[ch]: Rename exif_byte_swab..() to exif_byte_put..() as that is
index 6bc99f8..cf9808a 100644 (file)
@@ -49,7 +49,7 @@ gint format_fuji_raw(unsigned char *data, const guint len,
                }
 
        /* 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 */