diff --git a/toxav/codec.c b/toxav/codec.c index afe4f4aa..a1aa2869 100644 --- a/toxav/codec.c +++ b/toxav/codec.c @@ -133,7 +133,7 @@ static JitterBuffer *jbuf_new(uint32_t capacity) { unsigned int size = 1; - while (size <= capacity) { + while (size <= (capacity * 4)) { size *= 2; }