From 02cf970e0da9aee5afad0c3568eb935960a13e07 Mon Sep 17 00:00:00 2001 From: Scott Wheeler Date: Mon, 8 May 2006 20:08:33 +0000 Subject: [PATCH] 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 --- mpeg/xingheader.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mpeg/xingheader.cpp b/mpeg/xingheader.cpp index bd251dbb..93c5ad39 100644 --- a/mpeg/xingheader.cpp +++ b/mpeg/xingheader.cpp @@ -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; }