mirror of
https://github.com/aler9/gortsplib
synced 2025-10-04 14:52:46 +08:00
add AV1 format (#252)
This commit is contained in:
18
pkg/formats/av1_test.go
Normal file
18
pkg/formats/av1_test.go
Normal file
@@ -0,0 +1,18 @@
|
||||
package formats //nolint:dupl
|
||||
|
||||
import (
|
||||
"testing"
|
||||
|
||||
"github.com/pion/rtp"
|
||||
"github.com/stretchr/testify/require"
|
||||
)
|
||||
|
||||
func TestAV1Attributes(t *testing.T) {
|
||||
format := &AV1{
|
||||
PayloadTyp: 100,
|
||||
}
|
||||
require.Equal(t, "AV1", format.String())
|
||||
require.Equal(t, 90000, format.ClockRate())
|
||||
require.Equal(t, uint8(100), format.PayloadType())
|
||||
require.Equal(t, true, format.PTSEqualsDTS(&rtp.Packet{}))
|
||||
}
|
Reference in New Issue
Block a user