ByteVector works on chars, not unsigned chars, so there needs to be a cast before the comparison

This commit is contained in:
Scott Wheeler 2011-07-27 23:14:54 +02:00
parent bb25953767
commit 019fe4843f

View 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);