Make VoE handle longer delays

Review URL: https://webrtc-codereview.appspot.com/1047004

git-svn-id: http://webrtc.googlecode.com/svn/trunk@3385 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
niklas.enbom@webrtc.org 2013-01-17 22:25:49 +00:00
parent c7e935f5eb
commit 218c542c0b
2 changed files with 3 additions and 3 deletions

View File

@ -6522,14 +6522,14 @@ Channel::UpdatePacketDelay(const WebRtc_UWord32 timestamp,
timeStampDiffMs = 0;
return -1;
}
if (timeStampDiffMs > 5000)
if (timeStampDiffMs > (2 * kVoiceEngineMaxMinPlayoutDelayMs))
{
timeStampDiffMs = 0;
}
if (_averageDelayMs == 0)
{
_averageDelayMs = timeStampDiffMs;
_averageDelayMs = timeStampDiffMs * 10;
}
else
{

View File

@ -106,7 +106,7 @@ enum { kVoiceEngineMaxIsacMaxPayloadSizeBytesSwb = 600 };
// Lowest minimum playout delay
enum { kVoiceEngineMinMinPlayoutDelayMs = 0 };
// Highest minimum playout delay
enum { kVoiceEngineMaxMinPlayoutDelayMs = 1000 };
enum { kVoiceEngineMaxMinPlayoutDelayMs = 10000 };
// Network
// Min packet-timeout time for received RTP packets