mirror of
https://github.com/Genymobile/scrcpy
synced 2024-12-18 13:24:40 +00:00
Fix buffering pts conversion
The mistake had no effect, because tick is also internally expressed in microseconds.
This commit is contained in:
parent
4540f1d69e
commit
6379c08012
@ -65,7 +65,7 @@ run_buffering(void *data) {
|
||||
|
||||
sc_tick max_deadline = sc_tick_now() + vb->buffering_time;
|
||||
// PTS (written by the server) are expressed in microseconds
|
||||
sc_tick pts = SC_TICK_TO_US(vb_frame.frame->pts);
|
||||
sc_tick pts = SC_TICK_FROM_US(vb_frame.frame->pts);
|
||||
|
||||
bool timed_out = false;
|
||||
while (!vb->b.stopped && !timed_out) {
|
||||
|
Loading…
Reference in New Issue
Block a user