mirror of
https://github.com/taglib/taglib.git
synced 2025-07-18 04:54:19 -04:00
Two things:
- Fix the channel mode, copyright and original flags, as noticed by Bjoern Petersen. - Check in the "findByDescription()" function that I've had sitting around for a while. git-svn-id: svn://anonsvn.kde.org/home/kde/trunk/kdesupport/taglib@515068 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
This commit is contained in:
@ -233,12 +233,12 @@ void MPEG::Header::parse(const ByteVector &data)
|
||||
// The channel mode is encoded as a 2 bit value at the end of the 3nd byte,
|
||||
// i.e. xxxxxx11
|
||||
|
||||
d->channelMode = ChannelMode(uchar(data[2]) & 0x3);
|
||||
d->channelMode = ChannelMode((uchar(data[3]) & 0xC0) >> 6);
|
||||
|
||||
// TODO: Add mode extension for completeness
|
||||
|
||||
d->isCopyrighted = flags[0];
|
||||
d->isOriginal = flags[1];
|
||||
d->isOriginal = flags[2];
|
||||
d->isCopyrighted = flags[3];
|
||||
|
||||
// Calculate the frame length
|
||||
|
||||
|
Reference in New Issue
Block a user