mirror of
https://github.com/taglib/taglib.git
synced 2025-07-23 07:24:30 -04:00
Fix warnings with VS2010
This commit is contained in:
@ -263,9 +263,9 @@ void Ogg::FLAC::File::scan()
|
||||
d->hasXiphComment = true;
|
||||
d->commentPacket = ipacket;
|
||||
}
|
||||
else if(blockType > 5)
|
||||
else if(blockType > 5) {
|
||||
debug("Ogg::FLAC::File::scan() -- Unknown metadata block");
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
// End of metadata, now comes the datastream
|
||||
|
@ -173,7 +173,7 @@ void Vorbis::Properties::read()
|
||||
long long end = last->absoluteGranularPosition();
|
||||
|
||||
if(start >= 0 && end >= 0 && d->sampleRate > 0)
|
||||
d->length = (end - start) / (long long) d->sampleRate;
|
||||
d->length = (int)((end - start) / (long long) d->sampleRate);
|
||||
else
|
||||
debug("Vorbis::Properties::read() -- Either the PCM values for the start or "
|
||||
"end of this file was incorrect or the sample rate is zero.");
|
||||
|
Reference in New Issue
Block a user