From 6379c08012454300e399006e665a5e4f7d436202 Mon Sep 17 00:00:00 2001 From: Romain Vimont Date: Thu, 9 Mar 2023 09:05:46 +0100 Subject: [PATCH] Fix buffering pts conversion The mistake had no effect, because tick is also internally expressed in microseconds. --- app/src/video_buffer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) {