mirror of
https://github.com/aler9/gortsplib
synced 2025-11-03 11:11:01 +08:00
rename pkg/formats into pkt/format
This commit is contained in:
20
pkg/format/vorbis_test.go
Normal file
20
pkg/format/vorbis_test.go
Normal file
@@ -0,0 +1,20 @@
|
||||
package format
|
||||
|
||||
import (
|
||||
"testing"
|
||||
|
||||
"github.com/pion/rtp"
|
||||
"github.com/stretchr/testify/require"
|
||||
)
|
||||
|
||||
func TestVorbisAttributes(t *testing.T) {
|
||||
format := &Vorbis{
|
||||
PayloadTyp: 96,
|
||||
SampleRate: 48000,
|
||||
ChannelCount: 2,
|
||||
Configuration: []byte{0x01, 0x02, 0x03, 0x04},
|
||||
}
|
||||
require.Equal(t, "Vorbis", format.Codec())
|
||||
require.Equal(t, 48000, format.ClockRate())
|
||||
require.Equal(t, true, format.PTSEqualsDTS(&rtp.Packet{}))
|
||||
}
|
||||
Reference in New Issue
Block a user