diff --git a/src/makernote.cpp b/src/makernote.cpp index e9524328..75fc37fa 100644 --- a/src/makernote.cpp +++ b/src/makernote.cpp @@ -20,13 +20,13 @@ */ /* File: makernote.cpp - Version: $Name: $ $Revision: 1.13 $ + Version: $Name: $ $Revision: 1.14 $ Author(s): Andreas Huggel (ahu) History: 18-Feb-04, ahu: created */ // ***************************************************************************** #include "rcsid.hpp" -EXIV2_RCSID("@(#) $Name: $ $Revision: 1.13 $ $RCSfile: makernote.cpp,v $") +EXIV2_RCSID("@(#) $Name: $ $Revision: 1.14 $ $RCSfile: makernote.cpp,v $") // Define DEBUG_MAKERNOTE to output debug information to std::cerr #undef DEBUG_MAKERNOTE @@ -127,7 +127,7 @@ namespace Exif { if (!prefix_.empty()) { // Check if makernote is long enough and starts with prefix if ( len <= static_cast(prefix_.size()) - || prefix_ != std::string(buf, prefix_.size())) rc = 2; + || prefix_ != std::string(buf, prefix_.size())) rc = 2; } if (!absOffset_) { // Use offsets relative to the start of the Makernote field @@ -152,6 +152,7 @@ namespace Exif { #ifdef DEBUG_MAKERNOTE hexdump(std::cerr, buf, len, offset); if (rc == 0) ifd_.print(std::cerr); + else std::cerr << "IfdMakerNote::read() failed, rc = " << rc << "\n"; #endif return rc; } // IfdMakerNote::read diff --git a/src/makernote.hpp b/src/makernote.hpp index 60633c5b..51cf2668 100644 --- a/src/makernote.hpp +++ b/src/makernote.hpp @@ -22,7 +22,7 @@ @file makernote.hpp @brief Contains the %Exif %MakerNote interface, IFD %MakerNote and a MakerNote factory - @version $Name: $ $Revision: 1.12 $ + @version $Name: $ $Revision: 1.13 $ @author Andreas Huggel (ahu) ahuggel@gmx.net @date 18-Feb-04, ahu: created @@ -264,7 +264,7 @@ namespace Exif { protected: //! Prefix before the start of the IFD - std::string prefix_; + std::string prefix_; /*! True: Offsets are from start of the TIFF header False: Offsets are from start of the makernote