Fix corrupted Exif MakeNotes.
On behalf of panlop, see issue 615.
This commit is contained in:
@@ -902,7 +902,7 @@ int Tag::calculateSize () {
|
|||||||
size += valuesize + (valuesize%2); // we align tags to even byte positions
|
size += valuesize + (valuesize%2); // we align tags to even byte positions
|
||||||
|
|
||||||
if (makerNoteKind!=NOMK)
|
if (makerNoteKind!=NOMK)
|
||||||
count = directory[0]->calculateSize ();
|
count = directory[0]->calculateSize () / getTypeSize(type);
|
||||||
|
|
||||||
if (makerNoteKind==NIKON3 || makerNoteKind==OLYMPUS2 || makerNoteKind==FUJI)
|
if (makerNoteKind==NIKON3 || makerNoteKind==OLYMPUS2 || makerNoteKind==FUJI)
|
||||||
size += valuesize;
|
size += valuesize;
|
||||||
|
Reference in New Issue
Block a user