ByteVector header = readBlock(4);
char blockType = header[0] & 0x7f;
- isLastBlock = header[0] & 0x80;
+ isLastBlock = (header[0] & 0x80) != 0;
uint blockLength = header.mid(1, 3).toUInt();
if(blockType == VorbisComment) {
seek(firstBlockOffset);
ByteVector header = readBlock(4);
- bool isLastBlock = header[0] & 0x80;
+ bool isLastBlock = (header[0] & 0x80) != 0;
uint blockLength = header.mid(1, 3).toUInt();
if(isLastBlock) {
// <24> Length of metadata to follow
char blockType = header[0] & 0x7f;
- bool isLastBlock = header[0] & 0x80;
+ bool isLastBlock = (header[0] & 0x80) != 0;
uint length = header.mid(1, 3).toUInt();
// First block should be the stream_info metadata
while(!isLastBlock) {
header = readBlock(4);
blockType = header[0] & 0x7f;
- isLastBlock = header[0] & 0x80;
+ isLastBlock = (header[0] & 0x80) != 0;
length = header.mid(1, 3).toUInt();
if(blockType == Padding) {
// <24> Length of metadata to follow
char blockType = header[0] & 0x7f;
- bool lastBlock = header[0] & 0x80;
+ bool lastBlock = (header[0] & 0x80) != 0;
uint length = header.mid(1, 3).toUInt();
overhead += length;
header = metadataHeader.mid(0, 4);
blockType = header[0] & 0x7f;
- lastBlock = header[0] & 0x80;
+ lastBlock = (header[0] & 0x80) != 0;
length = header.mid(1, 3).toUInt();
overhead += length;