$OpenBSD$ index c7d80a4..c58cc7c 100644 --- content/media/AudioEventTimeline.h.orig Fri Feb 20 15:40:36 2015 +++ content/media/AudioEventTimeline.h Fri Feb 20 15:40:36 2015 @@ -7,6 +7,7 @@ #ifndef AudioEventTimeline_h_ #define AudioEventTimeline_h_ +#include #include "mozilla/Assertions.h" #include "mozilla/FloatingPoint.h" #include "mozilla/TypedEnum.h" @@ -421,8 +422,7 @@ public: // After the duration, return the last curve value return aCurve[aCurveLength - 1]; } - double ratio = (t - startTime) / duration; - MOZ_ASSERT(ratio >= 0.0, "Ratio can never be negative here"); + double ratio = std::max((t - startTime) / duration, 0.0); if (ratio >= 1.0) { return aCurve[aCurveLength - 1]; }