mirror of
https://github.com/aler9/gortsplib
synced 2025-10-18 21:14:38 +08:00
rename MPEG2Video into MPEG1Video, MPEG2Audio into MPEG1Audio
This commit is contained in:
15
pkg/formats/mpeg1_video_test.go
Normal file
15
pkg/formats/mpeg1_video_test.go
Normal file
@@ -0,0 +1,15 @@
|
||||
package formats
|
||||
|
||||
import (
|
||||
"testing"
|
||||
|
||||
"github.com/pion/rtp"
|
||||
"github.com/stretchr/testify/require"
|
||||
)
|
||||
|
||||
func TestMPEG1VideoAttributes(t *testing.T) {
|
||||
format := &MPEG1Video{}
|
||||
require.Equal(t, "MPEG-1/2 Video", format.Codec())
|
||||
require.Equal(t, 90000, format.ClockRate())
|
||||
require.Equal(t, true, format.PTSEqualsDTS(&rtp.Packet{}))
|
||||
}
|
Reference in New Issue
Block a user