summaryrefslogtreecommitdiffstats
path: root/spudec.c
diff options
context:
space:
mode:
Diffstat (limited to 'spudec.c')
-rw-r--r--spudec.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/spudec.c b/spudec.c
index 7589c2ccda..84af67e563 100644
--- a/spudec.c
+++ b/spudec.c
@@ -624,6 +624,7 @@ void spudec_heartbeat(void *this, unsigned int pts100)
spudec_handle_t *spu = (spudec_handle_t*) this;
spu->now_pts = pts100;
+ // TODO: detect and handle broken timestamps (e.g. due to wrapping)
while (spu->queue_head != NULL && pts100 >= spu->queue_head->start_pts) {
packet_t *packet = spudec_dequeue_packet(spu);
spu->start_pts = packet->start_pts;