Index: content/renderer/media/websourcebuffer_impl.cc |
diff --git a/content/renderer/media/websourcebuffer_impl.cc b/content/renderer/media/websourcebuffer_impl.cc |
index 686307640f099ad5f49db0531ea51129f043e124..f9c6bdfed184277bec3582829bfbf276980cdcfa 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(); |