зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1512456 - P4. Replace assert with MOZ_ASSERT. r=alwu
Differential Revision: https://phabricator.services.mozilla.com/D14027 --HG-- extra : moz-landing-system : lando
This commit is contained in:
Родитель
ebce26bb61
Коммит
3d5c3c9538
|
@ -760,7 +760,7 @@ nsresult WebMDemuxer::GetNextPacket(TrackInfo::TrackType aType,
|
|||
encrypted = !encrypted;
|
||||
lastOffset = partition;
|
||||
|
||||
assert(lastOffset <= length);
|
||||
MOZ_ASSERT(lastOffset <= length);
|
||||
}
|
||||
|
||||
// Add the data between the last offset and the end of the data.
|
||||
|
@ -787,7 +787,7 @@ nsresult WebMDemuxer::GetNextPacket(TrackInfo::TrackType aType,
|
|||
|
||||
// Assert that the lengths of the encrypted and plain samples add to
|
||||
// the length of the data.
|
||||
assert(
|
||||
MOZ_ASSERT(
|
||||
((size_t)(std::accumulate(writer->mCrypto.mPlainSizes.begin(),
|
||||
writer->mCrypto.mPlainSizes.end(), 0) +
|
||||
std::accumulate(writer->mCrypto.mEncryptedSizes.begin(),
|
||||
|
|
Загрузка…
Ссылка в новой задаче