From 5f7ede40caa7c989e69f73c5a0223b7401e4e32a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Verstraeten?= Date: Mon, 8 Jun 2026 16:19:38 +0000 Subject: [PATCH] Update CompositionTime comment for clarity on PTS-DTS calculation --- machinery/src/packets/packet.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/machinery/src/packets/packet.go b/machinery/src/packets/packet.go index ad07478..3bba8c7 100644 --- a/machinery/src/packets/packet.go +++ b/machinery/src/packets/packet.go @@ -14,7 +14,7 @@ type Packet struct { IsKeyFrame bool // video packet is key frame Idx int8 // stream index in container format Codec string // codec name - CompositionTime int64 // packet presentation time minus decode time for H264 B-Frame + CompositionTime int64 // composition offset (PTS - DTS) in milliseconds, non-zero for H264/H265 B-frames Time int64 // packet decode time TimeLegacy time.Duration CurrentTime int64 // current time in milliseconds (UNIX timestamp)