From 79aaba1bcbd54578f9730b940af71bcc4b16fc19 Mon Sep 17 00:00:00 2001 From: Lawrence Lee <45837045+Lawrence37@users.noreply.github.com> Date: Thu, 18 Jul 2024 22:22:27 -0700 Subject: [PATCH] Refactor isDNG flag --- rtengine/imagedata.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rtengine/imagedata.cc b/rtengine/imagedata.cc index 89f1f0105..77be8c1a3 100644 --- a/rtengine/imagedata.cc +++ b/rtengine/imagedata.cc @@ -732,8 +732,6 @@ FramesData::FramesData(const Glib::ustring &fname, time_t ts) : meta.getDimensions(w_, h_); - isDNG = find_exif_tag("Exif.Image.DNGVersion"); - // ----------------------- // Special file type detection (HDR, PixelShift) // ------------------------ @@ -937,6 +935,8 @@ FramesData::FramesData(const Glib::ustring &fname, time_t ts) : } } + isDNG = dngVersion; + // Read DNG OpcodeList1. if (dngVersion && (find_exif_tag("Exif.SubImage1.OpcodeList1") || find_exif_tag("Exif.Image.OpcodeList1"))) { readOpcodesList(pos->value(), &fixBadPixelsConstant, &hasFixBadPixelsConstant_, nullptr);