mirror of
https://github.com/aler9/gortsplib
synced 2025-10-04 23:02:45 +08:00
16 lines
331 B
Go
16 lines
331 B
Go
package formats
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/pion/rtp"
|
|
"github.com/stretchr/testify/require"
|
|
)
|
|
|
|
func TestMPEG2VideoAttributes(t *testing.T) {
|
|
format := &MPEG2Video{}
|
|
require.Equal(t, "MPEG2-video", format.String())
|
|
require.Equal(t, 90000, format.ClockRate())
|
|
require.Equal(t, true, format.PTSEqualsDTS(&rtp.Packet{}))
|
|
}
|