summaryrefslogtreecommitdiffstats
path: root/src/com/android
diff options
context:
space:
mode:
authorEarl Ou <shunhsingou@google.com>2012-08-03 12:20:49 +0800
committerEarl Ou <shunhsingou@google.com>2012-08-06 15:22:47 +0800
commit3da2799ea9bc7b711b164167d09bdda0bd8fee6f (patch)
treead70aac4e62630976747edc2d3542ba6a8e4cc4f /src/com/android
parent52f093f1b7b99622c35931f0af47349d32a67e19 (diff)
downloadandroid_packages_apps_Snap-3da2799ea9bc7b711b164167d09bdda0bd8fee6f.tar.gz
android_packages_apps_Snap-3da2799ea9bc7b711b164167d09bdda0bd8fee6f.tar.bz2
android_packages_apps_Snap-3da2799ea9bc7b711b164167d09bdda0bd8fee6f.zip
fix next ifd bug in ExifParser
Originally if we don't read value of tag we won't get 'NEXT_IFD' Change-Id: I235977b3b482fbc4736c244d280c384c26df6483
Diffstat (limited to 'src/com/android')
-rw-r--r--src/com/android/gallery3d/exif/IfdParser.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/com/android/gallery3d/exif/IfdParser.java b/src/com/android/gallery3d/exif/IfdParser.java
index e91b29dcd..c15a5b6d7 100644
--- a/src/com/android/gallery3d/exif/IfdParser.java
+++ b/src/com/android/gallery3d/exif/IfdParser.java
@@ -61,9 +61,10 @@ public class IfdParser {
public int next() throws IOException {
int offset = mTiffStream.getReadByteCount();
-
if (offset < mEndOfTagOffset) {
+ offset = mNextOffset;
skipTo(mNextOffset);
+
if(mNextOffset < mEndOfTagOffset) {
mNextOffset += TAG_SIZE;
return TYPE_NEW_TAG;