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:
Jean-Yves Avenard 2018-12-11 10:46:25 +00:00
Родитель ebce26bb61
Коммит 3d5c3c9538
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -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(),