mirror of
https://github.com/aler9/gortsplib
synced 2025-10-05 23:26:54 +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:
@@ -117,17 +117,6 @@ func (t *H265) Marshal() (string, string) {
|
||||
return "H265/90000", fmtp
|
||||
}
|
||||
|
||||
// Clone implements Format.
|
||||
func (t *H265) Clone() Format {
|
||||
return &H265{
|
||||
PayloadTyp: t.PayloadTyp,
|
||||
VPS: t.SafeVPS(),
|
||||
SPS: t.SafeSPS(),
|
||||
PPS: t.SafePPS(),
|
||||
MaxDONDiff: t.MaxDONDiff,
|
||||
}
|
||||
}
|
||||
|
||||
// PTSEqualsDTS implements Format.
|
||||
func (t *H265) PTSEqualsDTS(*rtp.Packet) bool {
|
||||
return true
|
||||
|
Reference in New Issue
Block a user