From: Hans U. N. <gp...@n-...> - 2005-03-17 13:13:23
|
Jan Patera <pa...@us...> writes: > Update of /cvsroot/libexif/libexif/libexif > In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv19628 > > Modified Files: > exif-data.c > Log Message: > Corrected byte ordering when sorting tags. > > > Index: exif-data.c > =================================================================== > RCS file: /cvsroot/libexif/libexif/libexif/exif-data.c,v > retrieving revision 1.70 > retrieving revision 1.71 > diff -u -d -r1.70 -r1.71 > --- exif-data.c 16 Mar 2005 07:33:05 -0000 1.70 > +++ exif-data.c 17 Mar 2005 07:43:39 -0000 1.71 > @@ -576,7 +576,7 @@ > /* Sort the directory according to TIFF specification */ > qsort (*d + 6 + offset - (ifd->count + n_ptr + n_thumb) * 12, > (ifd->count + n_ptr + n_thumb), 12, > - data->priv->order == EXIF_BYTE_ORDER_INTEL ? cmp_le_func : cmp_be_func); > + data->priv->order == EXIF_BYTE_ORDER_INTEL ? cmp_be_func : cmp_le_func); > > /* Correctly terminate the directory */ > if (i == EXIF_IFD_0 && (data->ifd[EXIF_IFD_1]->count || I thought Intel byte order was little endian? Uli |