mirror of
https://github.com/taglib/taglib.git
synced 2025-06-04 01:28:21 -04:00
Patch from John Stirling to fix bitmasks for header fields.
BUG:70649 git-svn-id: svn://anonsvn.kde.org/home/kde/trunk/kdesupport/taglib@538764 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
This commit is contained in:
parent
fca59f432e
commit
02cf970e0d
@ -94,12 +94,12 @@ void MPEG::XingHeader::parse(const ByteVector &data)
|
||||
// If the XingHeader doesn't contain the number of frames and the total stream
|
||||
// info it's invalid.
|
||||
|
||||
if(!(data[7] & 0x02)) {
|
||||
if(!(data[7] & 0x01)) {
|
||||
debug("MPEG::XingHeader::parse() -- Xing header doesn't contain the total number of frames.");
|
||||
return;
|
||||
}
|
||||
|
||||
if(!(data[7] & 0x04)) {
|
||||
if(!(data[7] & 0x02)) {
|
||||
debug("MPEG::XingHeader::parse() -- Xing header doesn't contain the total stream size.");
|
||||
return;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user