From e397f8f0532f4a9b80507ab39d97f818f7fb4fde Mon Sep 17 00:00:00 2001 From: Luis Diaz Mas Date: Tue, 13 Nov 2018 22:15:43 +0100 Subject: [PATCH] Fix #533 - Apply patch proposed by Dominique Nerriec --- src/makernote_int.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/makernote_int.cpp b/src/makernote_int.cpp index 2aa23147..092cf90e 100644 --- a/src/makernote_int.cpp +++ b/src/makernote_int.cpp @@ -989,7 +989,7 @@ namespace Exiv2 { // Require at least the header and an IFD with 1 entry if (size < PentaxDngMnHeader::sizeOfSignature() + 18) return 0; - return newPentaxDngMn2(tag, group, pentaxDngId); + return newPentaxDngMn2(tag, group, (tag == 0xc634 ? pentaxDngId:pentaxId)); } else if (size > 4 && std::string(reinterpret_cast(pData), 4) == std::string("AOC\0", 4)) { // Require at least the header and an IFD with 1 entry if (size < PentaxMnHeader::sizeOfSignature() + 18)