mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-04-15 08:29:45 +00:00
fix backwards subtraction
This commit is contained in:
parent
5375d8b643
commit
abb83e0b0e
@ -718,8 +718,8 @@ stfu_frame_t *stfu_n_read_a_frame(stfu_instance_t *i)
|
|||||||
uint32_t y;
|
uint32_t y;
|
||||||
stfu_frame_t *frame = NULL;
|
stfu_frame_t *frame = NULL;
|
||||||
|
|
||||||
int32_t delay = i->last_rd_ts - i->cur_ts;
|
int32_t delay = i->cur_ts - i->last_rd_ts;
|
||||||
uint32_t need = abs(i->last_rd_ts - i->cur_ts) / i->samples_per_packet;
|
uint32_t need = abs(delay) / i->samples_per_packet;
|
||||||
|
|
||||||
|
|
||||||
i->period_missing_count++;
|
i->period_missing_count++;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user