From b1e0189fa223feac6aa17c1dc7c7dc0770a64f86 Mon Sep 17 00:00:00 2001 From: Andreas Huggel Date: Sat, 11 Jun 2005 04:11:23 +0000 Subject: [PATCH] Relaxed checking of Makernote IFD next pointer. Print only a warning if the next pointer is not 0. Fixes bug #431 --- src/makernote.cpp | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/src/makernote.cpp b/src/makernote.cpp index f5a5158e..b807917a 100644 --- a/src/makernote.cpp +++ b/src/makernote.cpp @@ -42,9 +42,7 @@ EXIV2_RCSID("@(#) $Id$"); #include #include #include -#if defined DEBUG_MAKERNOTE || defined DEBUG_REGISTRY -# include -#endif +#include #include // ***************************************************************************** @@ -105,10 +103,9 @@ namespace Exiv2 { if (rc == 0) { // IfdMakerNote currently does not support multiple IFDs if (ifd_.next() != 0) { -#ifdef DEBUG_MAKERNOTE - std::cerr << "Makernote IFD has a next pointer != 0 (rc = 3)\n"; -#endif - rc = 3; + std::cerr << "Warning: Makernote IFD has a next pointer != 0 (" + << ifd_.next() + << "). Ignored.\n"; } } #ifdef DEBUG_MAKERNOTE