Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3)

Unified Diff: media/blink/websourcebuffer_impl.cc

Issue 1498003003: Remove kint64max. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: INT64_MAX Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « media/blink/websourcebuffer_impl.h ('k') | media/cast/sender/frame_sender.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/blink/websourcebuffer_impl.cc
diff --git a/media/blink/websourcebuffer_impl.cc b/media/blink/websourcebuffer_impl.cc
index 7e880ddde5ccd73dcba37b6e59b236d02b5b17c4..ffb62c5c5397918a608726aad42fa17be555eb1e 100644
--- a/media/blink/websourcebuffer_impl.cc
+++ b/media/blink/websourcebuffer_impl.cc
@@ -4,6 +4,8 @@
#include "media/blink/websourcebuffer_impl.h"
+#include <stdint.h>
+
#include <cmath>
#include <limits>
@@ -25,7 +27,8 @@ static base::TimeDelta DoubleToTimeDelta(double time) {
// Don't use base::TimeDelta::Max() here, as we want the largest finite time
// delta.
- base::TimeDelta max_time = base::TimeDelta::FromInternalValue(kint64max - 1);
+ base::TimeDelta max_time = base::TimeDelta::FromInternalValue(
+ std::numeric_limits<int64_t>::max() - 1);
double max_time_in_seconds = max_time.InSecondsF();
if (time >= max_time_in_seconds)
« no previous file with comments | « media/blink/websourcebuffer_impl.h ('k') | media/cast/sender/frame_sender.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698