Wrong Exif Id in io-jpeg.c?

2009-03-16 Thread Paul Stuart
Hi, Per the Exif specification, and the comments within io-jpeg.c, the 6 byte Exif Marker (APP1 marker) should be 0x45786966, or "Exif\0\0". But, in io-jpeg, they've defined: #define EXIF_IDENT_STRING "Exif\000\000" which in hex would be 0x457869660030 by my count. In the code that foll

Re: Wrong Exif Id in io-jpeg.c?

2009-03-16 Thread Robert Pearce
On Mon, 16 Mar 2009, Paul Stuart wrote : But, in io-jpeg, they've defined: #define EXIF_IDENT_STRING "Exif\000\000" which in hex would be 0x457869660030 by my count. I'm not quite sure how you reckon that. Escaped numbers in C strings are evaluated as octal, so seeing three digits is quite

RE: Wrong Exif Id in io-jpeg.c?

2009-03-16 Thread Paul Stuart
Huh, didn't know that. Thanks! From: gtk-list-boun...@gnome.org [gtk-list-boun...@gnome.org] On Behalf Of Robert Pearce [...@bdt-home.demon.co.uk] Sent: Monday, March 16, 2009 2:29 PM To: gtk-list@gnome.org Subject: Re: Wrong Exif Id in io-jpeg.c? O