diff options
author | Angus Kong <shkong@google.com> | 2012-01-18 07:00:33 -0800 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2012-01-18 07:00:33 -0800 |
commit | f485c62af532ad43c72268d7a5b3a399b1ef51cb (patch) | |
tree | c3f9a847b75151ab8d646b6ce64c3b575ac9a3a0 /main.c | |
parent | f4fd06d84d0d4ffe00b448f5c3320d63256b5035 (diff) | |
download | jhead-f485c62af532ad43c72268d7a5b3a399b1ef51cb.tar.gz |
Revert "Use values from attributes for DateTime tag."
This reverts commit f4fd06d84d0d4ffe00b448f5c3320d63256b5035
Diffstat (limited to 'main.c')
-rw-r--r-- | main.c | 7 |
1 files changed, 1 insertions, 6 deletions
@@ -230,7 +230,6 @@ static void saveAttributes(JNIEnv *env, jobject jobj, jstring jfilename, jstring int i; char tag[100]; - int hasDateTimeTag = FALSE; int gpsTagCount = 0; int exifTagCount = 0; @@ -264,10 +263,6 @@ static void saveAttributes(JNIEnv *env, jobject jobj, jstring jfilename, jstring } attrPtr = tagEnd + 1; - if (exifElementTable[i].Tag == 0x0132) { // 0x0132 is the DateTime tag number. - hasDateTimeTag = TRUE; - } - // next get the length of the attribute value int valueLen = atoi(attrPtr); attrPtr = strchr(attrPtr, ' ') + 1; @@ -320,7 +315,7 @@ static void saveAttributes(JNIEnv *env, jobject jobj, jstring jfilename, jstring } } - create_EXIF(exifElementTable, exifTagCount, gpsTagCount, hasDateTimeTag); + create_EXIF(exifElementTable, exifTagCount, gpsTagCount); if (thumbnailData) { copyThumbnailData(thumbnailData, thumbnailLength); |