Fix buffering pts conversion

The mistake had no effect, because tick is also internally expressed in
microseconds.
This commit is contained in:
Romain Vimont 2023-03-09 09:05:46 +01:00
parent 4540f1d69e
commit 6379c08012

View file

@ -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) {