Bug 1299735: [FLAC] Fix reading of bit depth. r=JamesCheng

MozReview-Commit-ID: 8djHfIRY4kv

--HG--
extra : rebase_source : 3716cc0e3461080553fbc0cac1d99b9c9c1e9f29
This commit is contained in:
Jean-Yves Avenard 2016-09-01 15:43:38 +10:00
parent dbdadee2fc
commit 64be3299d6

View File

@ -132,7 +132,7 @@ FlacFrameParser::DecodeHeaderBlock(const uint8_t* aPacket, size_t aLength)
if (numChannels > FLAC_MAX_CHANNELS) {
return false;
}
uint32_t bps = ((blob >> 38) & BITMASK(5)) + 1;
uint32_t bps = ((blob >> 36) & BITMASK(5)) + 1;
if (bps > 24) {
return false;
}