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

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

Issue 1285733002: Pass buffer offset to PlayOutputBuffer() call (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 4 months 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/media_codec_audio_decoder.cc
diff --git a/media/base/android/media_codec_audio_decoder.cc b/media/base/android/media_codec_audio_decoder.cc
index c910ce62f272ef889354ea257d6adc9462b935f3..663c8b5e91a69728125384d09031e6f3713449a0 100644
--- a/media/base/android/media_codec_audio_decoder.cc
+++ b/media/base/android/media_codec_audio_decoder.cc
@@ -157,6 +157,7 @@ void MediaCodecAudioDecoder::OnOutputFormatChanged() {
}
void MediaCodecAudioDecoder::Render(int buffer_index,
+ size_t offset,
size_t size,
bool render_output,
base::TimeDelta pts,
@@ -170,7 +171,7 @@ void MediaCodecAudioDecoder::Render(int buffer_index,
if (render_output) {
int64 head_position =
(static_cast<AudioCodecBridge*>(media_codec_bridge_.get()))
- ->PlayOutputBuffer(buffer_index, size);
+ ->PlayOutputBuffer(buffer_index, size, offset);
size_t new_frames_count = size / bytes_per_frame_;
frame_count_ += new_frames_count;

Powered by Google App Engine
This is Rietveld 408576698