Browse Source

TT#14008 fix warning as `output_ch` cannot be NULL

Change-Id: I3c079fc9fdca96d6ee2dbdfc17fd3834abc0e815
Warned-by: coverity
pull/1439/head
Richard Fuchs 4 years ago
parent
commit
0cc41a56ff
1 changed files with 1 additions and 2 deletions
  1. +1
    -2
      daemon/codec.c

+ 1
- 2
daemon/codec.c View File

@ -1877,8 +1877,7 @@ static int codec_add_dtmf_packet(struct codec_ssrc_handler *ch, struct codec_ssr
payload_type = h->dtmf_payload_type; payload_type = h->dtmf_payload_type;
skip: skip:
if (output_ch)
obj_put(&output_ch->h);
obj_put(&output_ch->h);
char *buf = malloc(packet->payload->len + sizeof(struct rtp_header) + RTP_BUFFER_TAIL_ROOM); 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); memcpy(buf + sizeof(struct rtp_header), packet->payload->s, packet->payload->len);
if (packet->bypass_seq) // inject original seq if (packet->bypass_seq) // inject original seq


Loading…
Cancel
Save