mirror of
https://github.com/aler9/gortsplib
synced 2025-10-05 15:16:51 +08:00
16 lines
309 B
Go
16 lines
309 B
Go
package format
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/pion/rtp"
|
|
"github.com/stretchr/testify/require"
|
|
)
|
|
|
|
func TestG726Attributes(t *testing.T) {
|
|
format := &G726{}
|
|
require.Equal(t, "G726", format.Codec())
|
|
require.Equal(t, 8000, format.ClockRate())
|
|
require.Equal(t, true, format.PTSEqualsDTS(&rtp.Packet{}))
|
|
}
|