From 050fbb4825d972cf96ecca829430b96a9596cc90 Mon Sep 17 00:00:00 2001 From: Randell Jesup Date: Fri, 25 Apr 2014 08:10:38 -0400 Subject: [PATCH] Bug 1001272: Fix AEC far-end audio distortion caused by repeated audio snippets r=padenot --- content/media/webrtc/MediaEngineWebRTCAudio.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/content/media/webrtc/MediaEngineWebRTCAudio.cpp b/content/media/webrtc/MediaEngineWebRTCAudio.cpp index a01a20209d23..ed4c9185b8c4 100644 --- a/content/media/webrtc/MediaEngineWebRTCAudio.cpp +++ b/content/media/webrtc/MediaEngineWebRTCAudio.cpp @@ -142,6 +142,7 @@ AudioOutputObserver::InsertFarEnd(const AudioDataValue *aBuffer, uint32_t aSampl #endif aSamples -= to_copy; mSamplesSaved += to_copy; + aBuffer += to_copy * aChannels; if (mSamplesSaved >= mChunkSize) { int free_slots = mPlayoutFifo->capacity() - mPlayoutFifo->size();