summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/qcam/dng_writer.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/qcam/dng_writer.cpp b/src/qcam/dng_writer.cpp
index ea4616f6..cbd8bed3 100644
--- a/src/qcam/dng_writer.cpp
+++ b/src/qcam/dng_writer.cpp
@@ -316,9 +316,7 @@ int DNGWriter::write(const char *filename, const Camera *camera,
TIFFSetField(tif, EXIFTAG_EXPOSURETIME, exposureTime);
}
- TIFFCheckpointDirectory(tif);
- exifIFDOffset = TIFFCurrentDirOffset(tif);
- TIFFWriteDirectory(tif);
+ TIFFWriteCustomDirectory(tif, &exifIFDOffset);
/* Update the IFD offsets and close the file. */
TIFFSetDirectory(tif, 0);