mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-09 03:15:11 +00:00
Backed out changeset 6ecaea77b9d5 (bug 1540746) for causing multiple build bustages on CheckedInt.h CLOSED TREE
This commit is contained in:
parent
87516ab507
commit
b573fad459
@ -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) {
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user