diff -Nur taglib-1.5/taglib/toolkit/tbytevector.cpp taglib/taglib/toolkit/tbytevector.cpp --- taglib-1.5/taglib/toolkit/tbytevector.cpp 2008-02-12 04:18:52.000000000 +0100 +++ taglib/taglib/toolkit/tbytevector.cpp 2008-12-04 13:37:36.000000000 +0100 @@ -147,12 +147,12 @@ public: ByteVectorMirror(const ByteVector &source) : v(source) {} - const char operator[](int index) const + char operator[](int index) const { return v[v.size() - index - 1]; } - const char at(int index) const + char at(int index) const { return v.at(v.size() - index - 1); } diff -Nur taglib-1.5/taglib/toolkit/tbytevector.h taglib/taglib/toolkit/tbytevector.h --- taglib-1.5/taglib/toolkit/tbytevector.h 2008-02-05 19:51:48.000000000 +0100 +++ taglib/taglib/toolkit/tbytevector.h 2009-07-02 22:54:32.000000000 +0200 @@ -30,7 +30,7 @@ #include "taglib_export.h" #include -#include +#include namespace TagLib { diff -Nur taglib-1.5/taglib/toolkit/tbytevectorlist.cpp taglib/taglib/toolkit/tbytevectorlist.cpp --- taglib-1.5/taglib/toolkit/tbytevectorlist.cpp 2008-02-04 16:14:45.000000000 +0100 +++ taglib/taglib/toolkit/tbytevectorlist.cpp 2009-07-11 15:24:21.000000000 +0200 @@ -52,7 +52,7 @@ offset != -1 && (max == 0 || max > int(l.size()) + 1); offset = v.find(pattern, offset + pattern.size(), byteAlign)) { - if(offset - previousOffset > 1) + if(offset - previousOffset >= 1) l.append(v.mid(previousOffset, offset - previousOffset)); else l.append(ByteVector::null);