From 28966315b90c79ca4ffa9cd3da5c92b5c583fe4d Mon Sep 17 00:00:00 2001 From: Philip Rinn Date: Tue, 26 Jun 2012 00:11:33 +0200 Subject: [PATCH] Fix corrupted Exif MakeNotes. On behalf of panlop, see issue 615. --- rtexif/rtexif.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rtexif/rtexif.cc b/rtexif/rtexif.cc index bf000b23d..da4fdc8b7 100644 --- a/rtexif/rtexif.cc +++ b/rtexif/rtexif.cc @@ -902,7 +902,7 @@ int Tag::calculateSize () { size += valuesize + (valuesize%2); // we align tags to even byte positions if (makerNoteKind!=NOMK) - count = directory[0]->calculateSize (); + count = directory[0]->calculateSize () / getTypeSize(type); if (makerNoteKind==NIKON3 || makerNoteKind==OLYMPUS2 || makerNoteKind==FUJI) size += valuesize;