Browse Source

fix DTMF packet allocation size

probably fixes #583
probably fixes #587
probably fixes #585
probably fixes #594

Change-Id: I6147acd4c539065142d15ce12b1a33993e1c0bec
changes/85/23185/1
Richard Fuchs 7 years ago
parent
commit
d4afb14e11
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      daemon/codec.c

+ 1
- 1
daemon/codec.c View File

@ -626,7 +626,7 @@ static void __output_rtp(struct media_packet *mp, struct codec_ssrc_handler *ch,
static void packet_dtmf_fwd(struct codec_ssrc_handler *ch, struct transcode_packet *packet,
struct media_packet *mp, int seq_inc)
{
char *buf = malloc(packet->payload->len + sizeof(struct rtp_header));
char *buf = malloc(packet->payload->len + sizeof(struct rtp_header) + RTP_BUFFER_TAIL_ROOM);
memcpy(buf + sizeof(struct rtp_header), packet->payload->s, packet->payload->len);
if (packet->ignore_seq) // inject original seq
__output_rtp(mp, ch, packet->handler ? : ch->handler, buf, packet->payload->len, packet->ts,


Loading…
Cancel
Save