]> granicus.if.org Git - taglib/commitdiff
comments++
authorMathias Panzenböck <grosser.meister.morti@gmx.net>
Sun, 19 Jun 2011 23:05:12 +0000 (01:05 +0200)
committerMathias Panzenböck <grosser.meister.morti@gmx.net>
Sun, 19 Jun 2011 23:05:12 +0000 (01:05 +0200)
taglib/it/itfile.cpp

index 2dc63968a216593976edf651de3425afd4531404..1ec693137ae1181713db74f9344b20561122b4d7 100644 (file)
@@ -177,6 +177,12 @@ void IT::File::read(bool)
   */
 
   StringList comment;
+  // Note: I found files that have nil characters somewhere
+  //       in the instrument/sample names and more characters
+  //       afterwards. The spec does not mention such a case.
+  //       Currently I just discard anything after a nil, but
+  //       e.g. VLC seems to interprete a nil as a space. I
+  //       don't know what is the proper behaviour.
   for(ushort i = 0; i < instrumentCount; ++ i)
   {
     seek(192L + length + ((long)i << 2));