summaryrefslogtreecommitdiff
path: root/src/client/cl_parse.c
diff options
context:
space:
mode:
authorZack Middleton <zturtleman@gmail.com>2012-12-14 07:32:07 +0000
committerTim Angus <tim@ngus.net>2013-01-12 21:26:40 +0000
commitdf12163f441f9c10955645ef8fdfe99f5f68d182 (patch)
treed3194343309fcdd53674a0e3d671456a0bdad11f /src/client/cl_parse.c
parentf0ccdf74ef8234be1d8c067515933cbc6be524ac (diff)
- Allow changing cl_voip without restarting. - Fix assert failing in CL_ParseVoip() while flipping cl_voip off and on.
Diffstat (limited to 'src/client/cl_parse.c')
-rw-r--r--src/client/cl_parse.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/cl_parse.c b/src/client/cl_parse.c
index c72a5588..1b74ba38 100644
--- a/src/client/cl_parse.c
+++ b/src/client/cl_parse.c
@@ -760,7 +760,7 @@ void CL_ParseVoip ( msg_t *msg ) {
// reset the bits just in case.
speex_bits_reset(&clc.speexDecoderBits[sender]);
seqdiff = 0;
- } else if (seqdiff > 100) { // more than 2 seconds of audio dropped?
+ } else if (seqdiff * clc.speexFrameSize * 2 >= sizeof (decoded)) { // dropped more than we can handle?
// just start over.
Com_DPrintf("VoIP: Dropped way too many (%d) frames from client #%d\n",
seqdiff, sender);