Fix the auido noise issue with FEC enabled

BUG = issue 652
TEST=manual test
Review URL: https://webrtc-codereview.appspot.com/720006

git-svn-id: http://webrtc.googlecode.com/svn/trunk@2601 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
braveyao@webrtc.org 2012-08-13 07:30:08 +00:00
parent 1d9521eeed
commit 52ce651283

View File

@ -431,7 +431,7 @@ WebRtc_Word32 RTPSenderAudio::SendAudio(
fragmentation->fragmentationLength[1]);
} else {
// silence for too long send only new data
dataBuffer[rtpHeaderLength++] = static_cast<WebRtc_UWord8>(payloadType);
dataBuffer[rtpHeaderLength++] = fragmentation->fragmentationPlType[0];
memcpy(dataBuffer+rtpHeaderLength,
payloadData + fragmentation->fragmentationOffset[0],
fragmentation->fragmentationLength[0]);
@ -442,6 +442,7 @@ WebRtc_Word32 RTPSenderAudio::SendAudio(
} else {
if (fragmentation && fragmentation->fragmentationVectorSize > 0) {
// use the fragment info if we have one
dataBuffer[rtpHeaderLength++] = fragmentation->fragmentationPlType[0];
memcpy( dataBuffer+rtpHeaderLength,
payloadData + fragmentation->fragmentationOffset[0],
fragmentation->fragmentationLength[0]);