]> granicus.if.org Git - taglib/commitdiff
Patch from John Stirling to fix bitmasks for header fields.
authorScott Wheeler <wheeler@kde.org>
Mon, 8 May 2006 20:08:33 +0000 (20:08 +0000)
committerScott Wheeler <wheeler@kde.org>
Mon, 8 May 2006 20:08:33 +0000 (20:08 +0000)
BUG:70649

git-svn-id: svn://anonsvn.kde.org/home/kde/trunk/kdesupport/taglib@538764 283d02a7-25f6-0310-bc7c-ecb5cbfe19da

mpeg/xingheader.cpp

index bd251dbb288951ae8e777f336a137da3c189003f..93c5ad39f281433954a48098500e1482fb89014f 100644 (file)
@@ -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;
   }