Corrected byte ordering when sorting tags.
authorJan Patera <patera@pictview.com>
Thu, 17 Mar 2005 07:43:39 +0000 (08:43 +0100)
committerJan Patera <patera@pictview.com>
Thu, 17 Mar 2005 07:43:39 +0000 (08:43 +0100)
libexif/exif-data.c

index 49a0e3c..b8e7441 100644 (file)
@@ -576,7 +576,7 @@ exif_data_save_data_content (ExifData *data, ExifContent *ifd,
        /* 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 ||