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

Unified Diff: media/base/timestamp_constants.h

Issue 1472083005: Remove kint64min. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@kint5
Patch Set: rebase 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 | « components/invalidation/impl/fake_invalidation_state_tracker.cc ('k') | media/cast/net/rtcp/rtcp.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/base/timestamp_constants.h
diff --git a/media/base/timestamp_constants.h b/media/base/timestamp_constants.h
index dfe9b993e5262d9d88098ed190ee32b9fe8b88c7..f5a1ab5d3ac65b85f0bb3ccc80fabb29a7ae0bff 100644
--- a/media/base/timestamp_constants.h
+++ b/media/base/timestamp_constants.h
@@ -5,6 +5,10 @@
#ifndef MEDIA_BASE_TIMESTAMP_CONSTANTS_H_
#define MEDIA_BASE_TIMESTAMP_CONSTANTS_H_
+#include <stdint.h>
+
+#include <limits>
+
#include "base/time/time.h"
#include "media/base/media_export.h"
@@ -12,7 +16,7 @@ namespace media {
// Indicates an invalid or missing timestamp.
MEDIA_EXPORT inline base::TimeDelta kNoTimestamp() {
- return base::TimeDelta::FromMicroseconds(kint64min);
+ return base::TimeDelta::FromMicroseconds(std::numeric_limits<int64_t>::min());
}
// Represents an infinite stream duration.
« no previous file with comments | « components/invalidation/impl/fake_invalidation_state_tracker.cc ('k') | media/cast/net/rtcp/rtcp.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698