Check SoundTouch source time against identifiable audio samples
This commit is contained in:
1 parent
801050bacb
commit
05d9e3f22e
2 files changed
+88
-1
No files matched your search
@@ -44,7 +44,8 @@ int call_video_rate_step(struct call_video_rate *rate, const struct call_video_r
|
||||
rate->next_change_us = s->now_us + interval;
|
||||
}
|
||||
/* Запас RTT относится к inflight, два кадра — к пакетному выходу encoder. */
|
||||
uint64_t normal = result.delivery_bps * ((uint64_t)s->baseline_rtt_us + 50000) / 8000000;
|
||||
uint64_t bounded_delivery = result.delivery_bps > MAX_BITRATE ? MAX_BITRATE : result.delivery_bps;
|
||||
uint64_t normal = bounded_delivery * ((uint64_t)s->baseline_rtt_us + 50000) / 8000000;
|
||||
normal += (uint64_t)s->applied_bps * s->frame_interval_us * 2 / 8000000;
|
||||
result.excess_bytes = s->debt_bytes > normal ? s->debt_bytes - normal : 0;
|
||||
if (!result.excess_bytes || !s->valid || s->locally_held || s->probing) rate->high = 0;
|
||||
|
||||
Reference in new issue
Block a user