Browse Source

leave room for SRTP auth tag on transcoded packets

closes #480

Change-Id: I353b2da1f52974d93c20f0ab4be25b9baa41765c
changes/88/19588/1
Richard Fuchs 8 years ago
parent
commit
32e0e2cf25
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      daemon/codec.c

+ 1
- 1
daemon/codec.c View File

@ -645,7 +645,7 @@ static int __packet_encoded(encoder_t *enc, void *u1, void *u2) {
while (1) {
// figure out how big of a buffer we need
unsigned int payload_len = MAX(enc->avpkt.size, ch->bytes_per_packet);
unsigned int pkt_len = sizeof(struct rtp_header) + payload_len;
unsigned int pkt_len = sizeof(struct rtp_header) + payload_len + RTP_BUFFER_TAIL_ROOM;
// prepare our buffers
char *buf = malloc(pkt_len);
struct rtp_header *rh = (void *) buf;


Loading…
Cancel
Save