FreeCalypso > hg > themwi-rtp-lib
comparison src/twjit_in.c @ 8:95f6c8ce33b0
twjit: prep for rework of time delta handling
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Fri, 05 Jul 2024 21:57:51 +0000 |
parents | 1bb26347e253 |
children | 117fa99ff871 |
comparison
equal
deleted
inserted
replaced
7:32cb5a2d1178 | 8:95f6c8ce33b0 |
---|---|
78 sb->delta_ms > sb->conf.start_max_delta) | 78 sb->delta_ms > sb->conf.start_max_delta) |
79 return INPUT_RESET; | 79 return INPUT_RESET; |
80 } else { | 80 } else { |
81 uint32_t fwd = ts_delta / twjit->ts_quantum; | 81 uint32_t fwd = ts_delta / twjit->ts_quantum; |
82 | 82 |
83 if (fwd >= sb->conf.max_future_sec * twjit->quanta_per_sec) | 83 if (fwd >= (uint32_t) sb->conf.max_future_sec * |
84 twjit->quanta_per_sec) | |
84 return INPUT_RESET; | 85 return INPUT_RESET; |
85 } | 86 } |
86 return INPUT_CONTINUE; | 87 return INPUT_CONTINUE; |
87 } | 88 } |
88 | 89 |