mirror of
https://github.com/irungentoo/toxcore.git
synced 2024-03-22 13:30:51 +08:00
Fixed bug
This commit is contained in:
parent
faaaa05206
commit
82a9d1ddd0
|
@ -58,7 +58,7 @@ struct jitter_buffer *create_queue(int capacity)
|
||||||
{
|
{
|
||||||
struct jitter_buffer *q;
|
struct jitter_buffer *q;
|
||||||
q = (struct jitter_buffer *)calloc(sizeof(struct jitter_buffer),1);
|
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;
|
int i = 0;
|
||||||
|
|
||||||
for (i = 0; i < capacity; ++i) {
|
for (i = 0; i < capacity; ++i) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user