Relaxed checking of Makernote IFD next pointer. Print only a warning if the next pointer is not 0. Fixes bug #431

v0.27.3
Andreas Huggel 20 years ago
parent 30f110c643
commit b1e0189fa2

@ -42,9 +42,7 @@ EXIV2_RCSID("@(#) $Id$");
#include <string> #include <string>
#include <sstream> #include <sstream>
#include <iomanip> #include <iomanip>
#if defined DEBUG_MAKERNOTE || defined DEBUG_REGISTRY #include <iostream>
# include <iostream>
#endif
#include <cassert> #include <cassert>
// ***************************************************************************** // *****************************************************************************
@ -105,10 +103,9 @@ namespace Exiv2 {
if (rc == 0) { if (rc == 0) {
// IfdMakerNote currently does not support multiple IFDs // IfdMakerNote currently does not support multiple IFDs
if (ifd_.next() != 0) { if (ifd_.next() != 0) {
#ifdef DEBUG_MAKERNOTE std::cerr << "Warning: Makernote IFD has a next pointer != 0 ("
std::cerr << "Makernote IFD has a next pointer != 0 (rc = 3)\n"; << ifd_.next()
#endif << "). Ignored.\n";
rc = 3;
} }
} }
#ifdef DEBUG_MAKERNOTE #ifdef DEBUG_MAKERNOTE

Loading…
Cancel
Save