mirror of
https://github.com/asticode/go-astiav.git
synced 2025-10-21 15:19:25 +08:00
Added extra data to codec context
This commit is contained in:
@@ -136,6 +136,12 @@ func TestCodecContext(t *testing.T) {
|
||||
require.NoError(t, err)
|
||||
require.Equal(t, 2, cp1.Channels())
|
||||
|
||||
cc6 := AllocCodecContext(nil)
|
||||
require.NotNil(t, cc6)
|
||||
b := []byte("test")
|
||||
require.NoError(t, cc6.SetExtraData(b))
|
||||
require.Equal(t, b, cc6.ExtraData())
|
||||
|
||||
// TODO Test ReceivePacket
|
||||
// TODO Test SendPacket
|
||||
// TODO Test ReceiveFrame
|
||||
|
Reference in New Issue
Block a user