mirror of
https://github.com/irungentoo/toxcore.git
synced 2024-03-22 13:30:51 +08:00
Fixed integer rollover bug in toxav.
This commit is contained in:
parent
89f2436fac
commit
6e361a52fb
|
@ -151,7 +151,11 @@ uint32_t toxav_do_interval(ToxAv *av)
|
|||
rc = MIN(av->calls[i].cs->audio_decoder_frame_duration, rc);
|
||||
}
|
||||
|
||||
return rc - av->avgdectms;
|
||||
if (rc < av->avgdectms) {
|
||||
return 0;
|
||||
} else {
|
||||
return rc - av->avgdectms;
|
||||
}
|
||||
}
|
||||
|
||||
void toxav_do(ToxAv *av)
|
||||
|
|
Loading…
Reference in New Issue
Block a user