mirror of
https://github.com/bluenviron/mediamtx.git
synced 2025-12-20 02:00:05 -08:00
route original timestamps without converting to durations (#3839)
This improves timestamp precision.
This commit is contained in:
parent
54c0737074
commit
23002d9f5f
43 changed files with 475 additions and 400 deletions
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue