status-go/vendor/github.com/pion/rtp/codecs/common.go

27 lines
546 B
Go
Raw Normal View History

2022-03-10 09:44:48 +00:00
package codecs
func min(a, b int) int {
if a < b {
return a
}
return b
}
// audioDepacketizer is a mixin for audio codec depacketizers
type audioDepacketizer struct{}
func (d *audioDepacketizer) IsPartitionTail(marker bool, payload []byte) bool {
return true
}
func (d *audioDepacketizer) IsPartitionHead(payload []byte) bool {
return true
}
// videoDepacketizer is a mixin for video codec depacketizers
type videoDepacketizer struct{}
func (d *videoDepacketizer) IsPartitionTail(marker bool, payload []byte) bool {
return marker
}