# HG changeset patch # User gqview # Date 1163193352 0 # Node ID 9c355d5c861992cfe926d66c08029686f685a92c # Parent a01d8c49ca2fe50bb855d66ed4faf817fd5624e8 Fri Nov 10 16:11:28 2006 John Ellis * 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. diff -r a01d8c49ca2f -r 9c355d5c8619 ChangeLog --- a/ChangeLog Fri Nov 10 03:30:00 2006 +0000 +++ b/ChangeLog Fri Nov 10 21:15:52 2006 +0000 @@ -1,3 +1,9 @@ +Fri Nov 10 16:11:28 2006 John Ellis + + * 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 * exif.[ch]: Rename exif_byte_swab..() to exif_byte_put..() as that is diff -r a01d8c49ca2f -r 9c355d5c8619 src/format_fuji.c --- 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 */