Now compatible with n6.1.1

This commit is contained in:
Quentin Renard
2024-03-30 15:10:01 +01:00
parent c24f820c29
commit 102ad3edb5
19 changed files with 206 additions and 132 deletions

16
packet_side_data_test.go Normal file
View 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))
}