From a5c94fa139c36aa0cb35cd71a429c226347fbfa6 Mon Sep 17 00:00:00 2001 From: Robert O'Callahan Date: Fri, 4 Jan 2013 12:16:32 -0500 Subject: [PATCH] Bug 822956. ProcessAudioChunk needs to take account of AudioChunk::mOffset. r=jesup --- media/webrtc/signaling/src/mediapipeline/MediaPipeline.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/media/webrtc/signaling/src/mediapipeline/MediaPipeline.cpp b/media/webrtc/signaling/src/mediapipeline/MediaPipeline.cpp index 9e39712e2de..7e51b5a1477 100644 --- a/media/webrtc/signaling/src/mediapipeline/MediaPipeline.cpp +++ b/media/webrtc/signaling/src/mediapipeline/MediaPipeline.cpp @@ -675,7 +675,8 @@ void MediaPipelineTransmit::PipelineListener::ProcessAudioChunk( break; case AUDIO_FORMAT_S16: { - const short* buf = static_cast(chunk.mBuffer->Data()); + const short* buf = static_cast(chunk.mBuffer->Data()) + + chunk.mOffset; ConvertAudioSamplesWithScale(buf, samples, chunk.mDuration, chunk.mVolume); } break;