diff options
Diffstat (limited to 'chromium/media/base/audio_timestamp_helper.cc')
-rw-r--r-- | chromium/media/base/audio_timestamp_helper.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/chromium/media/base/audio_timestamp_helper.cc b/chromium/media/base/audio_timestamp_helper.cc index ee87ed2ab45..01ec6be22ef 100644 --- a/chromium/media/base/audio_timestamp_helper.cc +++ b/chromium/media/base/audio_timestamp_helper.cc @@ -13,8 +13,8 @@ namespace media { base::TimeDelta AudioTimestampHelper::FramesToTime(int64_t frames, int samples_per_second) { DCHECK_GT(samples_per_second, 0); - return base::TimeDelta::FromMicroseconds( - frames * base::Time::kMicrosecondsPerSecond / samples_per_second); + return base::Microseconds(frames * base::Time::kMicrosecondsPerSecond / + samples_per_second); } // static @@ -82,7 +82,7 @@ base::TimeDelta AudioTimestampHelper::ComputeTimestamp( DCHECK_GE(frame_count, 0); DCHECK(base_timestamp_ != kNoTimestamp); double frames_us = microseconds_per_frame_ * frame_count; - return base_timestamp_ + base::TimeDelta::FromMicroseconds(frames_us); + return base_timestamp_ + base::Microseconds(frames_us); } } // namespace media |