All pastes #1338377 Raw Edit

Miscellany

public diff v1 · immutable
#1338377 ·published 2009-02-15 22:20 UTC
rendered paste body
Index: util/mp4chaps.cpp===================================================================--- util/mp4chaps.cpp	(revision 264)+++ util/mp4chaps.cpp	(working copy)@@ -22,6 +22,7 @@ // /////////////////////////////////////////////////////////////////////////////// #include "util/impl.h"+#include <string.h>  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=<title> @@ -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" ) )             {