mirror of
https://github.com/aler9/gortsplib
synced 2025-10-21 14:19:36 +08:00
simplify FMTP decoding and encoding (#205)
This commit is contained in:
@@ -24,13 +24,13 @@ func (t *MJPEG) PayloadType() uint8 {
|
||||
return 26
|
||||
}
|
||||
|
||||
func (t *MJPEG) unmarshal(payloadType uint8, clock string, codec string, rtpmap string, fmtp string) error {
|
||||
func (t *MJPEG) unmarshal(payloadType uint8, clock string, codec string, rtpmap string, fmtp map[string]string) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
// Marshal implements Format.
|
||||
func (t *MJPEG) Marshal() (string, string) {
|
||||
return "JPEG/90000", ""
|
||||
func (t *MJPEG) Marshal() (string, map[string]string) {
|
||||
return "JPEG/90000", nil
|
||||
}
|
||||
|
||||
// PTSEqualsDTS implements Format.
|
||||
|
Reference in New Issue
Block a user