summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChih-Chung Chang <chihchung@google.com>2012-10-15 13:35:18 +0800
committerChih-Chung Chang <chihchung@google.com>2012-10-15 13:37:33 +0800
commitdc4fa4c9d4d0246b900c587cbeb6dabbbe813199 (patch)
treeaa465ecd2456f4719bc6bde85766e5b06b8e3b58
parent85bdf7e6fd82d68aa4f917e234bf525968c5fc66 (diff)
downloadjhead-dc4fa4c9d4d0246b900c587cbeb6dabbbe813199.tar.gz
Bug: 7331241 Change-Id: Ie89f3a4349abd0d0247604c02d629992d1e8c94a
-rw-r--r--exif.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/exif.c b/exif.c
index 0e0c765..bb01453 100644
--- a/exif.c
+++ b/exif.c
@@ -1256,8 +1256,8 @@ static void writeExifTagAndData(int tag,
int denominator;
char* separator = strchr(curElement, '/');
if (separator) {
- int numerator = atoi(curElement);
- int denominator = atoi(separator + 1);
+ numerator = atoi(curElement);
+ denominator = atoi(separator + 1);
} else {
double value = atof(curElement);
ConvertDoubleToSRational(value, &numerator, &denominator);