mirror of
https://github.com/aler9/gortsplib
synced 2025-10-02 05:52:09 +08:00
remove suffix from new functions
This commit is contained in:
@@ -27,14 +27,14 @@ func TestLPCMDecEncoder(t *testing.T) {
|
||||
ChannelCount: 2,
|
||||
}
|
||||
|
||||
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