]> granicus.if.org Git - taglib/commitdiff
ByteVector works on chars, not unsigned chars, so there needs to be a cast before...
authorScott Wheeler <scott@directededge.com>
Wed, 27 Jul 2011 21:14:54 +0000 (23:14 +0200)
committerScott Wheeler <scott@directededge.com>
Wed, 27 Jul 2011 21:14:54 +0000 (23:14 +0200)
taglib/it/itfile.cpp

index 9dde7e6e9f24679487804c27c348cb8f9501c60f..0dfe6b7808a58ffa028e05bdf37eeebdcb6f85fd 100644 (file)
@@ -240,7 +240,8 @@ void IT::File::read(bool)
     // But this always gives 64 channels for all my files anyway.
     // Strangely VLC does report other values. I wonder how VLC
     // gets it's values.
-    if(pannings[i] < 128 && volumes[i] > 0) ++ channels;
+    if((unsigned char) pannings[i] < 128 && volumes[i] > 0)
+        ++channels;
   }
   d->properties.setChannels(channels);