mirror of
https://github.com/aler9/gortsplib
synced 2025-10-18 13:10:42 +08:00
18 lines
327 B
Go
18 lines
327 B
Go
package format
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/pion/rtp"
|
|
"github.com/stretchr/testify/require"
|
|
)
|
|
|
|
func TestKLVAttributes(t *testing.T) {
|
|
format := &KLV{
|
|
PayloadTyp: 96,
|
|
}
|
|
require.Equal(t, "KLV", format.Codec())
|
|
require.Equal(t, 90000, format.ClockRate())
|
|
require.Equal(t, true, format.PTSEqualsDTS(&rtp.Packet{}))
|
|
}
|