From 82a9d1ddd028dba55c99740e5d8e19a297dbcc1e Mon Sep 17 00:00:00 2001 From: mannol Date: Tue, 4 Feb 2014 23:22:01 +0100 Subject: Fixed bug --- toxav/toxmedia.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'toxav/toxmedia.c') diff --git a/toxav/toxmedia.c b/toxav/toxmedia.c index 00b1ebfc..cc0d72f9 100644 --- a/toxav/toxmedia.c +++ b/toxav/toxmedia.c @@ -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) { -- cgit v1.2.3