summaryrefslogtreecommitdiff
path: root/main
diff options
context:
space:
mode:
Diffstat (limited to 'main')
-rw-r--r--main/jitterbuf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/main/jitterbuf.c b/main/jitterbuf.c
index 4add56892..1bfe508da 100644
--- a/main/jitterbuf.c
+++ b/main/jitterbuf.c
@@ -139,7 +139,7 @@ static int check_resync(jitterbuf *jb, long ts, long now, long ms, const enum jb
/* check for drastic change in delay */
if (jb->info.conf.resync_threshold != -1) {
- if (abs(*delay - jb->info.last_delay) > threshold) {
+ if (labs(*delay - jb->info.last_delay) > threshold) {
jb->info.cnt_delay_discont++;
/* resync the jitterbuffer on 3 consecutive discontinuities,
* or immediately if a control frame */