提交 abb83e0b authored 作者: Anthony Minessale's avatar Anthony Minessale

fix backwards subtraction

上级 5375d8b6
......@@ -718,8 +718,8 @@ stfu_frame_t *stfu_n_read_a_frame(stfu_instance_t *i)
uint32_t y;
stfu_frame_t *frame = NULL;
int32_t delay = i->last_rd_ts - i->cur_ts;
uint32_t need = abs(i->last_rd_ts - i->cur_ts) / i->samples_per_packet;
int32_t delay = i->cur_ts - i->last_rd_ts;
uint32_t need = abs(delay) / i->samples_per_packet;
i->period_missing_count++;
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论