Index: media/filters/chunk_demuxer.cc |
diff --git a/media/filters/chunk_demuxer.cc b/media/filters/chunk_demuxer.cc |
index ca16d51dd21caaa7cbdcf9d9fb265606d2a60dcd..2e22cd834f5b69ad66f0a2a95b00207e94d5fcbd 100644 |
--- a/media/filters/chunk_demuxer.cc |
+++ b/media/filters/chunk_demuxer.cc |
@@ -1537,6 +1537,7 @@ void ChunkDemuxer::SetDuration(double duration) { |
// This can be different if the value of |duration| doesn't fit the range or |
// precision of TimeDelta. |
TimeDelta min_duration = TimeDelta::FromInternalValue(1); |
+ // Don't use TimeDelta::Max() here, as we want the largest finite time delta. |
TimeDelta max_duration = TimeDelta::FromInternalValue(kint64max - 1); |
double min_duration_in_seconds = min_duration.InSecondsF(); |
double max_duration_in_seconds = max_duration.InSecondsF(); |