Index: content/renderer/media/websourcebuffer_impl.cc |
diff --git a/content/renderer/media/websourcebuffer_impl.cc b/content/renderer/media/websourcebuffer_impl.cc |
index a7d8d8a537803b4f9a2a8bdf42777af21720a5a0..de55d417dc908970ef750855327090f579b80cd6 100644 |
--- a/content/renderer/media/websourcebuffer_impl.cc |
+++ b/content/renderer/media/websourcebuffer_impl.cc |
@@ -15,6 +15,8 @@ static base::TimeDelta DoubleToTimeDelta(double time) { |
if (time == std::numeric_limits<double>::infinity()) |
return media::kInfiniteDuration(); |
+ // Don't use base::TimeDelta::Max() here, as we want the largest finite time |
+ // delta. |
base::TimeDelta max_time = base::TimeDelta::FromInternalValue(kint64max - 1); |
double max_time_in_seconds = max_time.InSecondsF(); |