Make the maximum size of the jbuf at least 4 times the capacity.

Should prevent issues that might occur because a different thread is
reading it.
This commit is contained in:
irungentoo 2014-12-12 18:39:39 -05:00
parent 71527c436c
commit 39cc14ccea
No known key found for this signature in database
GPG Key ID: 10349DC9BED89E98

View File

@ -133,7 +133,7 @@ static JitterBuffer *jbuf_new(uint32_t capacity)
{
unsigned int size = 1;
while (size <= capacity) {
while (size <= (capacity * 4)) {
size *= 2;
}