mirror of
https://github.com/Genymobile/scrcpy
synced 2025-01-17 20:53:44 +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;
|
sc_tick max_deadline = sc_tick_now() + vb->buffering_time;
|
||||||
// PTS (written by the server) are expressed in microseconds
|
// 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;
|
bool timed_out = false;
|
||||||
while (!vb->b.stopped && !timed_out) {
|
while (!vb->b.stopped && !timed_out) {
|
||||||
|
Loading…
Reference in New Issue
Block a user