mirror of
https://github.com/status-im/status-go.git
synced 2025-01-11 07:07:24 +00:00
27 lines
546 B
Go
27 lines
546 B
Go
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
|
|
}
|