Skip to content

Display and control your Android device

Fix buffering pts conversion

Romain Vimont6379c0801245
diff --git a/app/src/video_buffer.c b/app/src/video_buffer.c
index 7f771179..74a4b042 100644
--- a/app/src/video_buffer.c
+++ b/app/src/video_buffer.c
@@ -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) {