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; |