We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 521d75a commit 080b88bCopy full SHA for 080b88b
srtp_cipher_aead_aes_gcm.go
@@ -101,7 +101,7 @@ func (s *srtpCipherAeadAesGcm) encryptRTP(
101
return nil, err
102
}
103
payloadLen := len(plaintext) - headerLen
104
- authPartLen := header.MarshalSize() + payloadLen + authTagLen
+ authPartLen := headerLen + payloadLen + authTagLen
105
dstLen := authPartLen + len(s.mki)
106
if rocInAuthTag {
107
dstLen += 4
0 commit comments