mirror of
https://github.com/aler9/gortsplib
synced 2025-10-03 22:36:31 +08:00
remove suffix from new functions
This commit is contained in:
@@ -19,14 +19,14 @@ func TestVP8ttributes(t *testing.T) {
|
||||
func TestVP8DecEncoder(t *testing.T) {
|
||||
format := &VP8{}
|
||||
|
||||
enc, err := format.CreateEncoder2()
|
||||
enc, err := format.CreateEncoder()
|
||||
require.NoError(t, err)
|
||||
|
||||
pkts, err := enc.Encode([]byte{0x01, 0x02, 0x03, 0x04}, 0)
|
||||
require.NoError(t, err)
|
||||
require.Equal(t, format.PayloadType(), pkts[0].PayloadType)
|
||||
|
||||
dec, err := format.CreateDecoder2()
|
||||
dec, err := format.CreateDecoder()
|
||||
require.NoError(t, err)
|
||||
|
||||
byts, _, err := dec.Decode(pkts[0])
|
||||
|
Reference in New Issue
Block a user