Files
gortsplib/pkg/format/mpeg2_video.go
2023-01-22 11:44:20 +01:00

38 lines
730 B
Go

package format
import (
"github.com/pion/rtp"
)
// MPEG2Video is a MPEG-1 or MPEG-2 video format.
type MPEG2Video struct{}
// String implements Format.
func (t *MPEG2Video) String() string {
return "MPEG2-video"
}
// ClockRate implements Format.
func (t *MPEG2Video) ClockRate() int {
return 90000
}
// PayloadType implements Format.
func (t *MPEG2Video) PayloadType() uint8 {
return 32
}
func (t *MPEG2Video) unmarshal(payloadType uint8, clock string, codec string, rtpmap string, fmtp string) error {
return nil
}
// Marshal implements Format.
func (t *MPEG2Video) Marshal() (string, string) {
return "", ""
}
// PTSEqualsDTS implements Format.
func (t *MPEG2Video) PTSEqualsDTS(*rtp.Packet) bool {
return true
}