From 0a62d6352e7920c93067163ef729d9414b4c9fdf Mon Sep 17 00:00:00 2001 From: Matthias Hochgatterer Date: Mon, 2 Aug 2021 09:53:17 +0200 Subject: [PATCH] Fix tlv8 tag --- rtp/setup_endpoints.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/rtp/setup_endpoints.go b/rtp/setup_endpoints.go index da0c8bce..28054ca4 100644 --- a/rtp/setup_endpoints.go +++ b/rtp/setup_endpoints.go @@ -40,9 +40,9 @@ type Addr struct { } type CryptoSuite struct { - Types []CryptoSuiteType `tlv8:"-"` - MasterKey []byte `tlv8:"2"` // 16 (AES_CM_128) or 32 (AES_256_CM) - MasterSalt []byte `tlv8:"3"` // 14 byte + Type byte `tlv8:"1"` + MasterKey []byte `tlv8:"2"` // 16 (AES_CM_128) or 32 (AES_256_CM) + MasterSalt []byte `tlv8:"3"` // 14 byte } func (c *CryptoSuite) SrtpKey() string {