summaryrefslogtreecommitdiff
path: root/toxav/codec.c
diff options
context:
space:
mode:
Diffstat (limited to 'toxav/codec.c')
-rw-r--r--toxav/codec.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/toxav/codec.c b/toxav/codec.c
index f1cd437a..10dc4f53 100644
--- a/toxav/codec.c
+++ b/toxav/codec.c
@@ -83,7 +83,7 @@ void queue(JitterBuffer *q, RTPMessage *pk)
83 83
84 unsigned int num = sequnum % q->size; 84 unsigned int num = sequnum % q->size;
85 85
86 if (sequnum - q->bottom > q->size) { 86 if ((uint32_t)(sequnum - q->bottom) > q->size) {
87 clear_queue(q); 87 clear_queue(q);
88 q->bottom = sequnum; 88 q->bottom = sequnum;
89 q->queue[num] = pk; 89 q->queue[num] = pk;
@@ -118,7 +118,7 @@ RTPMessage *dequeue(JitterBuffer *q, int *success)
118 return ret; 118 return ret;
119 } 119 }
120 120
121 if (q->top - q->bottom > q->capacity) { 121 if ((uint32_t)(q->top - q->bottom) > q->capacity) {
122 ++q->bottom; 122 ++q->bottom;
123 *success = 2; 123 *success = 2;
124 return NULL; 124 return NULL;