From 93e3c84d8b5b40b6b8fe92a7c4365431ec51a3ab Mon Sep 17 00:00:00 2001 From: Jonathan Naylor Date: Thu, 23 Nov 2017 16:56:10 +0000 Subject: [PATCH] Increase the jitter buffer size. --- JitterBuffer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/JitterBuffer.cpp b/JitterBuffer.cpp index 8f74b50..087285d 100644 --- a/JitterBuffer.cpp +++ b/JitterBuffer.cpp @@ -41,7 +41,7 @@ m_lastDataLength(0U) assert(jitterTime > 0U); assert(topSequenceNumber > 0U); - m_blockCount = jitterTime / blockTime + 1U; + m_blockCount = (jitterTime / blockTime) * 2U + 1U; m_buffer = new JitterEntry[m_blockCount];