Mercurial > geeqie.yaz
changeset 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 | a01d8c49ca2f |
children | 1818abf306c1 |
files | ChangeLog src/format_fuji.c |
diffstat | 2 files changed, 7 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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 <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
--- 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 */