summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorwonguk.jeong <wonguk.jeong@samsung.com>2014-06-29 13:10:15 +0200
committerCedric BAIL <c.bail@partner.samsung.com>2014-06-29 13:10:16 +0200
commit87b8339b81297720279b1a92f332fdafba69a330 (patch)
treee603dc45d6fc4f296e6ade030edec0fa70de1e7e
parent573f477272fb842f2ed3f1c951fd1c77d6936b59 (diff)
downloadefl-87b8339b81297720279b1a92f332fdafba69a330.tar.gz
jpeg loader: exif parsing bug fix
Summary: problem: orientation information was not come out properly byte align value was wrong. 0x4949 is II not MM refer to http://www.media.mit.edu/pia/Research/deepview/exif.html @fix Reviewers: raster, cedric, jpeg CC: seoz, cedric Differential Revision: https://phab.enlightenment.org/D1082
-rw-r--r--src/modules/evas/loaders/jpeg/evas_image_load_jpeg.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modules/evas/loaders/jpeg/evas_image_load_jpeg.c b/src/modules/evas/loaders/jpeg/evas_image_load_jpeg.c
index 64697586d8..e2fd97ca73 100644
--- a/src/modules/evas/loaders/jpeg/evas_image_load_jpeg.c
+++ b/src/modules/evas/loaders/jpeg/evas_image_load_jpeg.c
@@ -160,8 +160,8 @@ static const unsigned char JfifHeader[] = {0x4A, 0x46, 0x49, 0x46, 0x00};
static const unsigned char JfxxHeader[] = {0x4A, 0x46, 0x58, 0x58, 0x00};
static const unsigned char App0[] = {0xff, 0xe0};
static const unsigned char App1[] = {0xff, 0xe1};
-static const unsigned char MM[] = {0x49, 0x49};
-static const unsigned char II[] = {0x4d, 0x4d};
+static const unsigned char II[] = {0x49, 0x49};
+static const unsigned char MM[] = {0x4d, 0x4d};
typedef enum {
EXIF_BYTE_ALIGN_II,
EXIF_BYTE_ALIGN_MM