Bug 1332199 - remove always-true assertion. r=gerald

Because we read 8 bits from extradata, it won't exceed MAX_SPS/PPS_COUNT (256).

MozReview-Commit-ID: 5qr1pDLrmvt

--HG--
extra : rebase_source : 4a7269a7430ea913650298ad06a2132297dad85d
This commit is contained in:
Alastor Wu 2017-01-19 17:37:29 +08:00
parent 45be72443e
commit 4d3816d9e0

View File

@ -641,7 +641,6 @@ H264::DecodeSPSDataSetFromExtraData(const mozilla::MediaByteBuffer* aExtraData,
// No SPS.
return false;
}
NS_ASSERTION(numSps <= MAX_SPS_COUNT, "Exceed the maximum SPS counts!");
for (uint32_t idx = 0; idx < numSps; idx++) {
uint16_t length = reader.ReadU16();
@ -731,7 +730,6 @@ H264::DecodePPSDataSetFromExtraData(const mozilla::MediaByteBuffer* aExtraData,
// No PPs.
return false;
}
NS_ASSERTION(numPps <= MAX_PPS_COUNT, "Exceed the maximum PPS counts!");
for (uint32_t idx = 0; idx < numPps; idx++) {
uint16_t length = reader.ReadU16();