Bug 1207119: [mp3] Properly read channels count. r=esawin

The channel count is stored on bit 6 & 7 of byte at offset 3.
This commit is contained in:
Jean-Yves Avenard 2015-09-25 11:15:19 +10:00
parent 2b5820fdb4
commit 8c0baa5dda

View File

@ -688,7 +688,7 @@ FrameParser::FrameHeader::Private() const {
uint8_t
FrameParser::FrameHeader::RawChannelMode() const {
return 0xF & mRaw[frame_header::CHANNELMODE_MODEEXT_COPY_ORIG_EMPH] >> 4;
return 0x3 & mRaw[frame_header::CHANNELMODE_MODEEXT_COPY_ORIG_EMPH] >> 6;
}
int32_t