mirror of
https://github.com/aler9/gortsplib
synced 2025-10-05 23:26:54 +08:00
align PacketPTS() and PacketNTP(); add example (#374)
This commit is contained in:
@@ -58,7 +58,8 @@ func main() {
|
||||
|
||||
// called when a RTP packet arrives
|
||||
c.OnPacketRTP(medi, forma, func(pkt *rtp.Packet) {
|
||||
pts, ok := c.PacketPTS(forma, pkt)
|
||||
// decode timestamp
|
||||
pts, ok := c.PacketPTS(medi, pkt)
|
||||
if !ok {
|
||||
return
|
||||
}
|
||||
|
Reference in New Issue
Block a user