diff options
-rw-r--r-- | toxav/toxmedia.c | 2 |
1 files changed, 1 insertions, 1 deletions
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) | |||
58 | { | 58 | { |
59 | struct jitter_buffer *q; | 59 | struct jitter_buffer *q; |
60 | q = (struct jitter_buffer *)calloc(sizeof(struct jitter_buffer),1); | 60 | q = (struct jitter_buffer *)calloc(sizeof(struct jitter_buffer),1); |
61 | q->queue = (RTPMessage **)calloc((sizeof(RTPMessage) * capacity),1); | 61 | q->queue = (RTPMessage **)calloc(sizeof(RTPMessage), capacity); |
62 | int i = 0; | 62 | int i = 0; |
63 | 63 | ||
64 | for (i = 0; i < capacity; ++i) { | 64 | for (i = 0; i < capacity; ++i) { |