mirror of
https://github.com/aler9/gortsplib
synced 2025-10-07 08:01:14 +08:00
use random UUIDs as media IDs (#163)
* remove Medias.Clone(), Media.Clone(), Format.Clone() * server: use random UUIDs as media IDs * client: use random UUIDs as media IDs
This commit is contained in:
@@ -175,16 +175,6 @@ func (t *H264) Marshal() (string, string) {
|
||||
return "H264/90000", fmtp
|
||||
}
|
||||
|
||||
// Clone implements Format.
|
||||
func (t *H264) Clone() Format {
|
||||
return &H264{
|
||||
PayloadTyp: t.PayloadTyp,
|
||||
SPS: t.SafeSPS(),
|
||||
PPS: t.SafePPS(),
|
||||
PacketizationMode: t.PacketizationMode,
|
||||
}
|
||||
}
|
||||
|
||||
// PTSEqualsDTS implements Format.
|
||||
func (t *H264) PTSEqualsDTS(pkt *rtp.Packet) bool {
|
||||
return rtpH264ContainsIDR(pkt)
|
||||
|
Reference in New Issue
Block a user