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 373d062ac56d5fab2963b4ad1402c1ec0ad20fec..f2fae725edd07916f206e78b110ea90e033935b2 100644 |
--- a/media/base/android/media_codec_audio_decoder.cc |
+++ b/media/base/android/media_codec_audio_decoder.cc |
@@ -158,6 +158,7 @@ void MediaCodecAudioDecoder::OnOutputFormatChanged() { |
} |
void MediaCodecAudioDecoder::Render(int buffer_index, |
+ size_t offset, |
size_t size, |
bool render_output, |
base::TimeDelta pts, |
@@ -171,7 +172,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; |