Backed out changeset 6ecaea77b9d5 (bug 1540746) for causing multiple build bustages on CheckedInt.h CLOSED TREE

This commit is contained in:
arthur.iakab 2019-04-16 20:39:10 +03:00
parent 87516ab507
commit b573fad459
2 changed files with 2 additions and 2 deletions

View File

@ -66,7 +66,7 @@ CheckedInt64 UsecsToFrames(int64_t aUsecs, uint32_t aRate) {
// Format TimeUnit as number of frames at given rate.
CheckedInt64 TimeUnitToFrames(const TimeUnit& aTime, uint32_t aRate) {
return aTime.IsValid() ? UsecsToFrames(aTime.ToMicroseconds(), aRate) : aTime;
return UsecsToFrames(aTime.ToMicroseconds(), aRate);
}
nsresult SecondsToUsecs(double aSeconds, int64_t& aOutUsecs) {

View File

@ -385,7 +385,7 @@ void AudioSink::NotifyAudioNeeded() {
// hardware.
CheckedInt64 missingFrames = sampleTime - mFramesParsed;
if (!missingFrames.isValid() || !sampleTime.isValid()) {
if (!missingFrames.isValid()) {
NS_WARNING("Int overflow in AudioSink");
mErrored = true;
return;