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

Unified Diff: media/base/android/audio_decoder_job.cc

Issue 1534273002: Switch to standard integer types in media/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: more 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
Index: media/base/android/audio_decoder_job.cc
diff --git a/media/base/android/audio_decoder_job.cc b/media/base/android/audio_decoder_job.cc
index 3cf2c5f9a5c28f2e90e91828e15e8ef809988f10..dd1fa5346f173535812b2f78499828a6f005ed61 100644
--- a/media/base/android/audio_decoder_job.cc
+++ b/media/base/android/audio_decoder_job.cc
@@ -105,16 +105,16 @@ void AudioDecoderJob::ReleaseOutputBuffer(
render_output = render_output && (size != 0u);
bool is_audio_underrun = false;
if (render_output) {
- int64 head_position = (static_cast<AudioCodecBridge*>(
- media_codec_bridge_.get()))->PlayOutputBuffer(
- output_buffer_index, size, offset);
+ int64_t head_position =
+ (static_cast<AudioCodecBridge*>(media_codec_bridge_.get()))
+ ->PlayOutputBuffer(output_buffer_index, size, offset);
base::TimeTicks current_time = base::TimeTicks::Now();
size_t new_frames_count = size / bytes_per_frame_;
frame_count_ += new_frames_count;
audio_timestamp_helper_->AddFrames(new_frames_count);
- int64 frames_to_play = frame_count_ - head_position;
+ int64_t frames_to_play = frame_count_ - head_position;
DCHECK_GE(frames_to_play, 0);
const base::TimeDelta last_buffered =

Powered by Google App Engine
This is Rietveld 408576698