Fixed bug

This commit is contained in:
mannol 2014-02-04 23:22:01 +01:00
parent faaaa05206
commit 82a9d1ddd0

View File

@ -58,7 +58,7 @@ struct jitter_buffer *create_queue(int capacity)
{
struct jitter_buffer *q;
q = (struct jitter_buffer *)calloc(sizeof(struct jitter_buffer),1);
q->queue = (RTPMessage **)calloc((sizeof(RTPMessage) * capacity),1);
q->queue = (RTPMessage **)calloc(sizeof(RTPMessage), capacity);
int i = 0;
for (i = 0; i < capacity; ++i) {