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

Unified Diff: media/filters/chunk_demuxer.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/filters/chunk_demuxer.h ('k') | media/formats/webm/webm_parser.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/filters/chunk_demuxer.cc
diff --git a/media/filters/chunk_demuxer.cc b/media/filters/chunk_demuxer.cc
index 869edfba3eeb90d76a89da2a709c525c2a9b0361..b96b0399a3d9cc69ee519a47e020f2aed747e2b1 100644
--- a/media/filters/chunk_demuxer.cc
+++ b/media/filters/chunk_demuxer.cc
@@ -118,7 +118,7 @@ class SourceState {
// spec's similarly named source buffer attributes that are used in coded
// frame processing. |init_segment_received_cb| is run for each new fully
// parsed initialization segment.
- bool Append(const uint8* data,
+ bool Append(const uint8_t* data,
size_t length,
TimeDelta append_window_start,
TimeDelta append_window_end,
@@ -325,7 +325,7 @@ void SourceState::SetGroupStartTimestampIfInSequenceMode(
}
bool SourceState::Append(
- const uint8* data,
+ const uint8_t* data,
size_t length,
TimeDelta append_window_start,
TimeDelta append_window_end,
@@ -1453,7 +1453,7 @@ bool ChunkDemuxer::EvictCodedFrames(const std::string& id,
void ChunkDemuxer::AppendData(
const std::string& id,
- const uint8* data,
+ const uint8_t* data,
size_t length,
TimeDelta append_window_start,
TimeDelta append_window_end,
@@ -1594,7 +1594,8 @@ void ChunkDemuxer::SetDuration(double duration) {
// 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);
+ TimeDelta max_duration =
+ TimeDelta::FromInternalValue(std::numeric_limits<int64_t>::max() - 1);
double min_duration_in_seconds = min_duration.InSecondsF();
double max_duration_in_seconds = max_duration.InSecondsF();
« no previous file with comments | « media/filters/chunk_demuxer.h ('k') | media/formats/webm/webm_parser.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698