mirror of
https://github.com/aler9/gortsplib
synced 2025-10-05 07:06:58 +08:00
16 lines
310 B
Go
16 lines
310 B
Go
package formats
|
|
|
|
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{}))
|
|
}
|