route original timestamps without converting to durations (#3839)

This improves timestamp precision.
This commit is contained in:
Alessandro Ros 2024-10-07 17:59:32 +02:00 committed by GitHub
parent 54c0737074
commit 23002d9f5f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
43 changed files with 475 additions and 400 deletions

View file

@ -143,7 +143,7 @@ func (s *Source) Run(params defs.StaticSourceRunParams) error {
cforma := forma
c.OnPacketRTP(cmedi, cforma, func(pkt *rtp.Packet) {
pts, ok := c.PacketPTS(cmedi, pkt)
pts, ok := c.PacketPTS2(cmedi, pkt)
if !ok {
return
}