mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-09 03:15:11 +00:00
Bug 1299735: [FLAC] Fix reading of bit depth. r=JamesCheng
MozReview-Commit-ID: 8djHfIRY4kv --HG-- extra : rebase_source : 3716cc0e3461080553fbc0cac1d99b9c9c1e9f29
This commit is contained in:
parent
dbdadee2fc
commit
64be3299d6
@ -132,7 +132,7 @@ FlacFrameParser::DecodeHeaderBlock(const uint8_t* aPacket, size_t aLength)
|
|||||||
if (numChannels > FLAC_MAX_CHANNELS) {
|
if (numChannels > FLAC_MAX_CHANNELS) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
uint32_t bps = ((blob >> 38) & BITMASK(5)) + 1;
|
uint32_t bps = ((blob >> 36) & BITMASK(5)) + 1;
|
||||||
if (bps > 24) {
|
if (bps > 24) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user