diff options
author | Sean Bright <sean.bright@gmail.com> | 2017-03-19 14:26:38 -0400 |
---|---|---|
committer | Sean Bright <sean.bright@gmail.com> | 2017-03-19 14:27:29 -0400 |
commit | 265455bc2dc0b110a88df65209b281e846bc3e56 (patch) | |
tree | f6ac44b7c5b374a24fe504b6d9229b1128635f39 /res | |
parent | baeabb82eaa92a9d493ae92b77ece72faf37d619 (diff) |
res_rtp_asterisk: Pass correct data length to ast_rtcp_interpret
We are currently passing in the capacity of the read buffer instead of the
number of bytes that we actually read off the wire.
Change-Id: I60465049727d955c7f9a5e529e6f2aaff04cda36
Diffstat (limited to 'res')
-rw-r--r-- | res/res_rtp_asterisk.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/res/res_rtp_asterisk.c b/res/res_rtp_asterisk.c index efaf654a3..d681fea02 100644 --- a/res/res_rtp_asterisk.c +++ b/res/res_rtp_asterisk.c @@ -4405,7 +4405,7 @@ static struct ast_frame *ast_rtcp_read(struct ast_rtp_instance *instance) return &ast_null_frame; } - if (!*(read_area)) { + if (!*read_area) { struct sockaddr_in addr_tmp; struct ast_sockaddr addr_v4; @@ -4427,7 +4427,7 @@ static struct ast_frame *ast_rtcp_read(struct ast_rtp_instance *instance) return &ast_null_frame; } - return ast_rtcp_interpret(instance, read_area, read_area_size, &addr); + return ast_rtcp_interpret(instance, read_area, res, &addr); } static int bridge_p2p_rtp_write(struct ast_rtp_instance *instance, unsigned int *rtpheader, int len, int hdrlen) @@ -4611,7 +4611,7 @@ static struct ast_frame *ast_rtp_read(struct ast_rtp_instance *instance, int rtc /* This could be a multiplexed RTCP packet. If so, be sure to interpret it correctly */ if (rtcp_mux(rtp, read_area)) { - return ast_rtcp_interpret(instance, read_area, read_area_size, &addr); + return ast_rtcp_interpret(instance, read_area, res, &addr); } /* Make sure the data that was read in is actually enough to make up an RTP packet */ |