1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef MEDIA_BASE_TIMESTAMP_CONSTANTS_H_
6 #define MEDIA_BASE_TIMESTAMP_CONSTANTS_H_
8 #include "base/time/time.h"
9 #include "media/base/media_export.h"
13 // Indicates an invalid or missing timestamp.
14 MEDIA_EXPORT
inline base::TimeDelta
kNoTimestamp() {
15 return base::TimeDelta::FromMicroseconds(kint64min
);
18 // Represents an infinite stream duration.
19 MEDIA_EXPORT
inline base::TimeDelta
kInfiniteDuration() {
20 return base::TimeDelta::Max();
25 #endif // MEDIA_BASE_TIMESTAMP_CONSTANTS_H_