mirror of
https://github.com/asticode/go-astiav.git
synced 2025-10-04 07:46:33 +08:00
Now compatible with n6.1.1
This commit is contained in:
16
packet_side_data_test.go
Normal file
16
packet_side_data_test.go
Normal file
@@ -0,0 +1,16 @@
|
||||
package astiav
|
||||
|
||||
import (
|
||||
"testing"
|
||||
|
||||
"github.com/stretchr/testify/require"
|
||||
)
|
||||
|
||||
func TestPacketSideData(t *testing.T) {
|
||||
cp := AllocCodecParameters()
|
||||
defer cp.Free()
|
||||
b := []byte("test")
|
||||
sd := cp.SideData()
|
||||
require.NoError(t, sd.Add(PacketSideDataTypeDisplaymatrix, b))
|
||||
require.Equal(t, b, sd.Get(PacketSideDataTypeDisplaymatrix))
|
||||
}
|
Reference in New Issue
Block a user