Index: util/mp4chaps.cpp =================================================================== --- util/mp4chaps.cpp (revision 264) +++ util/mp4chaps.cpp (working copy) @@ -22,6 +22,7 @@ // /////////////////////////////////////////////////////////////////////////////// #include "util/impl.h" +#include namespace mp4v2 { namespace util { @@ -1005,7 +1006,7 @@ formatState = FMT_STATE_FINISH; } - else if( 0 == strnicmp( pos, "CHAPTER", 7 ) ) + else if( 0 == strncasecmp( pos, "CHAPTER", 7 ) ) { // common format: CHAPTERxx=hh:mm:ss.sss\nCHAPTERxxNAME= @@ -1018,7 +1019,11 @@ } *equalsPos = 0; - strlwr( pos ); + + string cpp = pos; + std::transform( cpp.begin(), cpp.end(), cpp.begin(), ::tolower ); + strcpy (pos, cpp.c_str()); + //strlwr( pos ); if( NULL != strstr( pos, "name" ) ) {